| NMathFunctionsRound(Single, Int32) Method |
Rounds a floating point number to the specified number of digits.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public static float Round(
float f,
int d
)
Public Shared Function Round (
f As Single,
d As Integer
) As Single
public:
static float Round(
float f,
int d
)
static member Round :
f : float32 *
d : int -> float32
Parameters
- f Single
- A floating point number.
- d Int32
- Digits to round.
Return Value
SingleThe result of
d rounded to
i decimal places.
See Also