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.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also