2.7.6 Digits


Description

Number of digit in the decimal part

Syntax

VB: Property Get/Let Digits As Integer
C++: int Digits
C#: int Digits

Remark

Examples

VB

    Sub Digits()
        Dim app As Origin.IOApplication
        Dim wks As Origin.Worksheet
        'you may set the column data format as numeric and digits as Set Decimal Places=5
        'the message box will output 5
        app = New Origin.ApplicationSI
        wks = app.FindWorksheet("") 'get active worksheet
        If wks Is Nothing Then
            MsgBox("Can not get active worksheet")
            Exit Sub
        End If

        Dim digits As Integer
        digits = wks.Columns(0).Digits
        MsgBox(digits)
    End Sub

Version Information

8.0SR2

See Also