Click or drag to resize
MathUtilsRound Method (Single, Int32)
Rounds the specified number to the passed number of fractional digits.

Namespace: Slash.Math.Utils
Assembly: Slash.Math (in Slash.Math.dll) Version: 1.0.6018.40177
Syntax
public static float Round(
	float x,
	int digits
)

Parameters

x
Type: SystemSingle
Number to round.
digits
Type: SystemInt32
Number of fractional digits in the return value.

Return Value

Type: Single
Specified number rounded to the passed number of fractional digits.
See Also