Nevron .NET Vision
Nevron Namespace / NMath Class / GetMostRoundedNumber Method
The exclusive first number.
The exclusive second number.


In This Topic
    GetMostRoundedNumber Method
    In This Topic
    Gets the most rounded number (i.e. the number with most ending zeroes) between a and b excluding them both.
    Syntax
    'Declaration
     
    
    Public Shared Function GetMostRoundedNumber( _
       ByVal a As System.Double, _
       ByVal b As System.Double _
    ) As System.Double
    'Usage
     
    
    Dim a As System.Double
    Dim b As System.Double
    Dim value As System.Double
     
    value = NMath.GetMostRoundedNumber(a, b)
    public static System.double GetMostRoundedNumber( 
       System.double a,
       System.double b
    )

    Parameters

    a
    The exclusive first number.
    b
    The exclusive second number.

    Return Value

    The most rounded number between a and b.
    Remarks
    The function returns 0 if one of the parameters is less than or equal to 0 and the other is positive.
    Example
    If a = 367 and b = 1400 then the result will be 1000.
    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