BigFloat.Round(BigFloat, Int32) Method

Rounds a BigFloat value to the specified number of decimal digits.

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
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.

See Also