ComponentOne MultiSelect for WinForms
C1.Framework.Mathematics Namespace / Math Class / Round Method / Round(Decimal,Int32) Method
A decimal number to be rounded.
The number of significant fractional digits (precision) in the return value.

In This Topic
    Round(Decimal,Int32) Method
    In This Topic
    Returns the number nearest the specified value.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function Round( _
       ByVal value As Decimal, _
       ByVal digits As Integer _
    ) As Decimal
    public static decimal Round( 
       decimal value,
       int digits
    )

    Parameters

    value
    A decimal number to be rounded.
    digits
    The number of significant fractional digits (precision) in the return value.

    Return Value

    The number nearest value with precision equal to decimals.
    See Also