BigFloat.Round Method

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

Overload List

Round(BigFloat) Rounds a BigFloat value to the nearest integer.
Round(BigFloat, Int32) Rounds a BigFloat value to the specified number of decimal digits.
Round(BigFloat, Int32, RoundingMode) Rounds a BigFloat value to the specified number of decimal digits.

Round(BigFloat)

Rounds a BigFloat value to the nearest integer.
C#
public static BigFloat Round(
	BigFloat value
)

Parameters

value  BigFloat
A BigFloat value.

Return Value

BigFloat
The BigFloat value that equals the integer closest to value.

Exceptions

ArgumentNullExceptionvalue is null.

Round(BigFloat, Int32)

Rounds a BigFloat value to the specified number of decimal digits.
C#
public static BigFloat Round(
	BigFloat value,
	int digits
)

Parameters

value  BigFloat
A BigFloat value.
digits  Int32
The number of decimal digits.

Return Value

BigFloat
The 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

ArgumentNullExceptionvalue is null.

Round(BigFloat, Int32, RoundingMode)

Rounds a BigFloat value to the specified number of decimal digits.
C#
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

BigFloat
The 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

ArgumentNullExceptionvalue is null.

See Also