MathHelperRoundToNearest Method
|
Round off a numeric value to the nearest of another value.
Namespace:
DXFReaderNET
Assembly:
DXFReaderNET (in DXFReaderNET.dll) Version: 20.10.54
Syntax public static double RoundToNearest(
double number,
double roundTo
)
Public Shared Function RoundToNearest (
number As Double,
roundTo As Double
) As Double
public:
static double RoundToNearest(
double number,
double roundTo
)
static member RoundToNearest :
number : float *
roundTo : float -> float
STATIC METHOD RoundToNearest(
number AS REAL8,
roundTo AS REAL8
) AS REAL8
Parameters
- number
- Type: SystemDouble
Number to round off. - roundTo
- Type: SystemDouble
The number will be rounded to the nearest of this value.
Return Value
Type:
DoubleThe number rounded to the nearest value.
See Also