IFractional Operations<T>.Round Method
Rounds a value to the specified number of decimal digits.
Definition
Namespace: Extreme.Mathematics.Generic
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
a rounded to digits decimal digits.
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
T Round(
T a,
int digits,
RoundingMode roundingMode
)
Parameters
- a T
- A value.
- digits Int32
- The number of decimal digits to round to.
- roundingMode RoundingMode
- A RoundingMode value that specifies how the result should be rounded.
Return Value
Ta rounded to digits decimal digits.