International Language Environments Guide for Oracle® Solaris 11.2

Exit Print View

Updated: July 2014
 
 

Number Formats

There are various number formats specified by locales, for example Great Britain and the United States use a period to indicate the decimal place. Many other countries use a comma instead. The decimal separator is also called the radix character. Likewise, while Great Britain and the United States use a comma to separate groups of thousands, many other countries use a period instead, and some countries separate thousands groups with a thin space (Unicode character U+2009).

Data files containing locale-specific formats are frequently misinterpreted when transferred to a system in a different locale. For example, a file containing numbers in a French format is not useful to a British-specific program.

The following table shows some commonly used numeric formats. The information on numeric delimiters for current locale can be obtained by issuing the following command:

$ locale -ck LC_NUMERIC
Table 1-4  International Numeric Conventions
Locale
Description
Number Format
C
-
4294967.00
ar_SA.UTF-8
Arabic, Saudi Arabia
4967967,00
cs_CZ.UTF-8
Czech, Czech Republic
4 294 967,00
de_DE.UTF-8
German, Germany
4.294.967,00
de_CH.UTF-8
German, Switzerland
4'294'967.00
en_US.UTF-8
English, U.S.A.
4,294,967.00
hi_IN.UTF-8
Hindi, India
42,94,967.00

Note - No particular locale conventions exist that specify how to separate numbers in a list.