BigRational.Round Method

Rounds a rational number 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 BigRational Round(
	BigRational value,
	int digits
)

Parameters

value  BigRational
A rational number.
digits  Int32
The number of decimal digits.

Return Value

BigRational
A rational number 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.

See Also