Rounds a rational number to the specified number of decimal digits.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static BigRational Round(
BigRational value,
int digits
)
Public Shared Function Round (
value As BigRational,
digits As Integer
) As BigRational
public:
static BigRational Round(
BigRational value,
int digits
)
static member Round :
value : BigRational *
digits : int -> BigRational
Parameters
- value
- Type: Extreme.MathematicsBigRational
A rational number. - digits
- Type: SystemInt32
The number of decimal digits.
Return Value
Type:
BigRationalA rational number 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