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 As System.Double, _
ByVal 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 ,
System.double
)
Parameters
- a
- The exclusive first number.
- b
- The exclusive second number.
Return Value
The most rounded number between a and b.
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