Click or drag to resize

NMathFunctionsRound(Single, Int32) Method

Rounds a floating point number to the specified number of digits.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public static float Round(
	float f,
	int d
)

Parameters

f  Single
A floating point number.
d  Int32
Digits to round.

Return Value

Single
The result of d rounded to i decimal places.
See Also