TNumberRound(TNumber, TNumber) Method

Rounds a value to a specified number of fractional digits using the specified rounding convention.

Definition

Namespace: SMath.Math.Numeric
Assembly: SMath.Math.Numeric (in SMath.Math.Numeric.dll) Version: 1.67.9018.0
C#
public TNumber Round(
	TNumber value,
	TNumber type
)

Parameters

value  TNumber
The number of fractional digits in the return value.
type  TNumber
One of the enumeration values that specifies which rounding strategy to use.

Return Value

TNumber
A value rounded to a specified number of fractional digits.

Exceptions

GeneralExceptionThrows on rounding coefficient error.

See Also