Windows desktop applications
Collapse the table of content
Expand the table of content
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.

NumeralSystemTranslator.TranslateNumerals | translateNumerals method

Converts a string of characters containing Latin digits to a string containing the corresponding digits of NumeralSystem.

Syntax


var string = numeralSystemTranslator.translateNumerals(value);

Parameters

value

Type: String [JavaScript] | System.String [.NET] | Platform::String [C++]

A string of characters containing Latin digits to be converted.

Return value

Type: String [JavaScript] | System.String [.NET] | Platform::String [C++]

A string containing the converted digits. This string may be a different length than value.

Remarks

Characters in value that are not Latin digits are not converted, but pass through unchanged. If value is null (representing an empty string) the result is null. If NumeralSystem is "Latn", value is passed through unchanged.

Note  For Arabic numeral systems ("Arab" and "ArabExt" or any numeral systems which use a combination of those characters):
  • A period (.) immediately before a Latin digit is converted to the Arabic Decimal Separator (u+66b).
  • A comma (,) immediately before a Latin digit is converted to Arabic Thousand Separator (u+66c).
  • A percent (%) adjacent to a Latin digit is converted to Arabic Per Cent Symbol (u+66a).
  • A permille (u+2030) adjacent to a Latin digit is converted to Arabic Per Mille Symbol (u+609).
 

Requirements (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

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

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

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

NumeralSystemTranslator
NumeralSystem

 

 

Show:
© 2016 Microsoft