Windows.Globalization.NumberFormatting Windows.Globalization.NumberFormatting Windows.Globalization.NumberFormatting Windows.Globalization.NumberFormatting Namespace

Provides classes for formatting currencies, decimal numbers, percent values, and permille values, based on the user's languages and geographic region.

Introduction

If your app passes language tags from this namespace to any National Language Support functions, it must first convert the tags by calling ResolveLocaleName.

Classes

Formats and parses currencies.

Formats and parses decimal numbers.

Rounds numbers to a specified increment.

For example, this class can be used to round a number to the nearest 0.01.

Translates digits of the Latin numerical system into digits of another numerical system.

Formats and parses percentages.

Formats and parses permillages.

Rounds numbers to a specified number of significant digits.

Interfaces

An interface that returns a string representation of a provided value, using an overloaded Format(System.Double) method to format several data types.

An interface that returns a string representation of a provided value, using distinct format methods to format several data types.

An interface that gets and sets options for formatting numbers.

An interface that parses a string representation of a numeric value.

An interface that returns rounded results for provided numbers of several data types.

An interface that gets and sets the option for rounding numbers.

An interface that gets and sets the option for specifying whether -0 is formatted as "-0" or "0".

An interface that gets and sets the option for specifying significant digits.

Enums

Specifies the use of symbols or codes when currency is formatted.

This enumeration is used by the Mode property of CurrencyFormatter.

Specifies the algorithm used to round numbers.