MoneyRound(IRoundingStrategy, Int32) Method

Rounds the instance internal value to the smallest fractional unit of the instance's currency, to a specified number of decimal places, using a specific rounding strategy.

Definition

Namespace: InnerDrive.Financial
Assembly: InnerDrive.Financial (in InnerDrive.Financial.dll) Version: 5.2.9017.0
C#
public decimal Round(
	IRoundingStrategy rounding,
	int decimals
)

Parameters

rounding  IRoundingStrategy
The rounding strategy to use
decimals  Int32
The number of decimal places to round the value.

Return Value

Decimal
A Decimal rounded to the nearest fractional unit.

Exceptions

ArgumentNullExceptionrounding is null

See Also