IFractionalOperations<T>.Round Method

Rounds a value to the specified number of decimal digits.

Definition

Namespace: Extreme.Mathematics.Generic
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
T Round(
	T a,
	int digits,
	RoundingMode roundingMode
)

Parameters

a  T
A value.
digits  Int32
The number of decimal digits to round to.
roundingMode  RoundingMode
A RoundingMode value that specifies how the result should be rounded.

Return Value

T
a rounded to digits decimal digits.

See Also