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

Namespace:  CenterSpace.NMath.Core
Assembly:  NMath (in NMath.dll) Version: 5.1.0.0

Syntax

C#
public static float Round(
	float f,
	int d
)
Visual Basic (Declaration)
Public Shared Function Round ( _
	f As Single, _
	d As Integer _
) As Single
Visual C++
public:
static float Round(
	float f, 
	int d
)

Parameters

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

Return Value

The result of d rounded to i decimal places.

See Also