 | MathUtilsRound Method (Single, Int32) |
Rounds the specified number to the passed number of fractional digits.
Namespace: Slash.Math.UtilsAssembly: Slash.Math (in Slash.Math.dll) Version: 1.0.6018.40177
Syntaxpublic static float Round(
float x,
int digits
)
Public Shared Function Round (
x As Single,
digits As Integer
) As Single
public:
static float Round(
float x,
int digits
)
static member Round :
x : float32 *
digits : int -> float32
Parameters
- x
- Type: SystemSingle
Number to round. - digits
- Type: SystemInt32
Number of fractional digits in the return value.
Return Value
Type:
SingleSpecified number rounded to the passed number of fractional digits.
See Also