Spread Windows Forms 17
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet.UI Namespace / UIHelper Class / GetFractionDigits Method
The numeric value.
true if the exponential format is allowed; otherwise, false.
A boolean value indicates whether the exponential format is used. This value is used only if allowExponentialFormat is true.


In This Topic
    GetFractionDigits Method
    In This Topic
    Gets the total number of digits after decimal point.
    Syntax
    'Declaration
     
    
    Public Shared Function GetFractionDigits( _
       ByVal value As Double, _
       ByVal allowExponentialFormat As Boolean, _
       ByRef exponentialFormat As Boolean _
    ) As Integer
    'Usage
     
    
    Dim value As Double
    Dim allowExponentialFormat As Boolean
    Dim exponentialFormat As Boolean
    Dim value As Integer
     
    value = UIHelper.GetFractionDigits(value, allowExponentialFormat, exponentialFormat)
    public static int GetFractionDigits( 
       double value,
       bool allowExponentialFormat,
       out bool exponentialFormat
    )

    Parameters

    value
    The numeric value.
    allowExponentialFormat
    true if the exponential format is allowed; otherwise, false.
    exponentialFormat
    A boolean value indicates whether the exponential format is used. This value is used only if allowExponentialFormat is true.

    Return Value

    -1 if the value is not a number.

    If exponentialFormat is true, the result represents exponent value; otherwise, it returns a non-negative value represents the total number of digits after decimal point.

    See Also