Nevron Open Vision Documentation
Nevron.Nov Namespace / NMathF Class / Round Method / Round(Single,Int32) Method


In This Topic
    Round(Single,Int32) Method
    In This Topic
    Rounds a number to the precision represented by numDigits.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function Round( _
       ByVal value As System.Single, _
       ByVal numOfDigits As System.Integer _
    ) As System.Single
    'Usage
     
    
    Dim value As System.Single
    Dim numOfDigits As System.Integer
    Dim value As System.Single
     
    value = NMathF.Round(value, numOfDigits)
    public static System.float Round( 
       System.float value,
       System.int numOfDigits
    )

    Parameters

    value
    numOfDigits
    Remarks
    If numOfDigits is greater than 0, number is rounded by numDigits to the right of the decimal. If numOfDigits is 0, number is rounded to an integer. If numOfDigits is less than 0, number is rounded by numDigits to the left of the decimal.
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also