Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

CurrencyFormatter.ApplyRoundingForCurrency | applyRoundingForCurrency method

Applies to Windows and Windows Phone

Prepares the CurrencyFormatter object to format currency values with a specified rounding algorithm.

Syntax


currencyFormatter.applyRoundingForCurrency(roundingAlgorithm);

Parameters

roundingAlgorithm

Type: RoundingAlgorithm

The desired rounding algorithm for the currency. This must be one of the members of RoundingAlgorithm, excluding None.

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.

Requirements

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.Globalization.NumberFormatting
Windows::Globalization::NumberFormatting [C++]

Metadata

Windows.winmd

See also

CurrencyFormatter
RoundingAlgorithm

 

 

Show:
© 2015 Microsoft