 | MathHelperRoundToNearest Method |
imbVeles Framework: imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Round off a numeric value to the nearest of another value.
Namespace:
netDxf
Assembly:
netDXF.Standard (in netDXF.Standard.dll) Version: 2.1.1
Syntaxpublic static double RoundToNearest(
double number,
double roundTo
)
Request Example
View SourceParameters
- 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