IMathTNumericRound(TNumeric, MidpointRounding) Method

Rounds a value an integer using the specified rounding convention.

Definition

Namespace: Jodosoft.Numerics
Assembly: Jodosoft.Numerics (in Jodosoft.Numerics.dll) Version: 2.0
TNumeric Round(
	TNumeric value,
	MidpointRounding mode
)

Parameters

value  TNumeric
A number to be rounded.
mode  MidpointRounding
One of the enumeration values that specifies which rounding strategy to use.

Return Value

TNumeric
The integer that value is rounded to.

Remarks

This method may return NaN or Infinity. If NaN or Infinity cannot be represented by TNumeric, then this method may throw an ArithmeticException.

See Also