CurrencyFormatter.ApplyRoundingForCurrency(RoundingAlgorithm) CurrencyFormatter.ApplyRoundingForCurrency(RoundingAlgorithm) CurrencyFormatter.ApplyRoundingForCurrency(RoundingAlgorithm) CurrencyFormatter.ApplyRoundingForCurrency(RoundingAlgorithm) CurrencyFormatter.ApplyRoundingForCurrency(RoundingAlgorithm) Method

Definition

Applies the specified rounding algorithm to the CurrencyFormatter.

public : void ApplyRoundingForCurrency(RoundingAlgorithm roundingAlgorithm)
void ApplyRoundingForCurrency(RoundingAlgorithm roundingAlgorithm) const;
public void ApplyRoundingForCurrency(RoundingAlgorithm roundingAlgorithm)
Public Sub ApplyRoundingForCurrency(roundingAlgorithm As RoundingAlgorithm)
currencyFormatter.applyRoundingForCurrency(roundingAlgorithm);

Parameters

roundingAlgorithm
RoundingAlgorithm 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.

See also