CurrencyFormatter.ApplyRoundingForCurrency(RoundingAlgorithm) Method

Definition

Applies the specified rounding algorithm to the CurrencyFormatter.

public:
 virtual void ApplyRoundingForCurrency(RoundingAlgorithm roundingAlgorithm) = ApplyRoundingForCurrency;
void ApplyRoundingForCurrency(RoundingAlgorithm const& roundingAlgorithm);
public void ApplyRoundingForCurrency(RoundingAlgorithm roundingAlgorithm);
function applyRoundingForCurrency(roundingAlgorithm)
Public Sub ApplyRoundingForCurrency (roundingAlgorithm As RoundingAlgorithm)

Parameters

roundingAlgorithm
RoundingAlgorithm

A value of the RoundingAlgorithm enumeration.

Note

RoundingAlgorithm.None is not a valid value.

Remarks

ApplyRoundingForCurrency initializes NumberRounder to an IncrementNumberRounder object whose increment is set such that the inputs to Format will be rounded to the number of fraction digits established by Currency. The number of fraction digits can be obtained from the default value of the FractionDigits property.

Applies to

See also