CurrencyFormatter.ApplyRoundingForCurrency(RoundingAlgorithm) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.