Click or drag to resize

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
Syntax
C#
public static double RoundToNearest(
	double number,
	double roundTo
)
Request Example View Source

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