Rounds a decimal value to the nearest integral value.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static decimal Round(
decimal value
)
Public Shared Function Round (
value As Decimal
) As Decimal
public:
static Decimal Round(
Decimal value
)
static member Round :
value : decimal -> decimal
Parameters
- value
- Type: SystemDecimal
A decimal number to be rounded.
Return Value
Type:
Decimal
The integer nearest parameter value. If the fractional component of
value is halfway
between two integers, one of which is even and the other odd, the even number
is returned. Note that this method returns a System.Decimal instead of an
integral type.
Exception | Condition |
---|
OverflowException |
The result is outside the range of a System.Decimal.
|
Reference