Click or drag to resize

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
)

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: Double
The number rounded to the nearest value.
See Also