Big Float.Round Method
Definition
Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Overload List
Round( | Rounds a BigFloat value to the nearest integer. |
Round( | Rounds a BigFloat value to the specified number of decimal digits. |
Round( | Rounds a BigFloat value to the specified number of decimal digits. |
Round(BigFloat)
Rounds a BigFloat value to the nearest integer.
public static BigFloat Round(
BigFloat value
)
Parameters
Return Value
BigFloatThe BigFloat value that equals the integer closest to value.
Exceptions
Argument | value is null. |
Round(BigFloat, Int32)
Rounds a BigFloat value to the specified number of decimal digits.
public static BigFloat Round(
BigFloat value,
int digits
)
Parameters
Return Value
BigFloatThe BigFloat value with digits digits after the decimal point that is closest to value.
Remarks
If digits is negative, then the result is an integer that is a multiple of a power of ten. Results are rounded towards zero.
Exceptions
Argument | value is null. |
Round(BigFloat, Int32, RoundingMode)
Rounds a BigFloat value to the specified number of decimal digits.
public static BigFloat Round(
BigFloat value,
int digits,
RoundingMode roundingMode
)
Parameters
- value BigFloat
- A BigFloat value.
- digits Int32
- The number of decimal digits.
- roundingMode RoundingMode
- The rounding mode.
Return Value
BigFloatThe BigFloat value with digits digits after the decimal point that is closest to value.
Remarks
If digits is negative, then the result is an integer that is a multiple of a power of ten. Results are rounded towards zero.
Exceptions
Argument | value is null. |