Rounds a Quad value to a specified number of fractional digits. A parameter
specifies how to round the value if it is midway between two other numbers.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static Quad Round(
Quad value,
int decimals,
MidpointRounding mode
)
Public Shared Function Round (
value As Quad,
decimals As Integer,
mode As MidpointRounding
) As Quad
public:
static Quad Round(
Quad value,
int decimals,
MidpointRounding mode
)
static member Round :
value : Quad *
decimals : int *
mode : MidpointRounding -> Quad
Parameters
- value
- Type: Extreme.MathematicsQuad
A quadruple precision number to be rounded.
- decimals
- Type: SystemInt32
The number of Quad places in the return value.
- mode
- Type: SystemMidpointRounding
Specification for how to round value if it is midway between two other numbers.
Return Value
Type:
Quad
The number nearest to value that contains a number of fractional digits equal
to decimals. If the number of fractional digits in value is less than decimals,
value is returned unchanged.
Reference