IMathTNumericRound(TNumeric, MidpointRounding) Method
Rounds a value an integer using the specified rounding convention.
Namespace: Jodosoft.NumericsAssembly: Jodosoft.Numerics (in Jodosoft.Numerics.dll) Version: 2.0
TNumeric Round(
TNumeric value,
MidpointRounding mode
)
Function Round (
value As TNumeric,
mode As MidpointRounding
) As TNumeric
TNumeric Round(
TNumeric value,
MidpointRounding mode
)
abstract Round :
value : 'TNumeric *
mode : MidpointRounding -> 'TNumeric
- value TNumeric
- A number to be rounded.
- mode MidpointRounding
- One of the enumeration values that specifies which rounding strategy to use.
TNumericThe integer that
value is rounded to.
This method may return
NaN or Infinity.
If
NaN or Infinity cannot be represented by
TNumeric,
then this method may throw an
ArithmeticException.