IMathTNumericRound(TNumeric, Int32) Method
Rounds a value to a specified number of fractional digits, and rounds midpoint values to the nearest even number.
Namespace: Jodosoft.NumericsAssembly: Jodosoft.Numerics (in Jodosoft.Numerics.dll) Version: 2.0
TNumeric Round(
TNumeric value,
int digits
)
Function Round (
value As TNumeric,
digits As Integer
) As TNumeric
TNumeric Round(
TNumeric value,
int digits
)
abstract Round :
value : 'TNumeric *
digits : int -> 'TNumeric
- value TNumeric
- A number to be rounded.
- digits Int32
- The number of fractional digits in the return value.
TNumericThe number nearest to
value that contains a number of fractional digits equal to
digits.
This method may return
NaN or Infinity.
If
NaN or Infinity cannot be represented by
TNumeric,
then this method may throw an
ArithmeticException.