Rounds a
BigFloat value to the specified number of decimal digits.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static BigFloat Round(
BigFloat value,
int digits,
RoundingMode roundingMode
)
Public Shared Function Round (
value As BigFloat,
digits As Integer,
roundingMode As RoundingMode
) As BigFloat
public:
static BigFloat^ Round(
BigFloat^ value,
int digits,
RoundingMode roundingMode
)
static member Round :
value : BigFloat *
digits : int *
roundingMode : RoundingMode -> BigFloat
Parameters
- value
- Type: Extreme.MathematicsBigFloat
A BigFloat value. - digits
- Type: SystemInt32
The number of decimal digits. - roundingMode
- Type: Extreme.MathematicsRoundingMode
The rounding mode.
Return Value
Type:
BigFloatThe
BigFloat value with
digits digits after
the decimal point that is closest to
value.
If digits is negative, then the result is an integer that is
a multiple of a power of ten. Results are rounded towards zero.
Reference