decimal seperator in fa_IR.utf8 locale

15 views
Skip to first unread message

Majid Einian

unread,
Nov 29, 2011, 3:04:15 AM11/29/11
to persian-...@googlegroups.com

 I have found that decimal seperator in fa_IR.utf8 is . (dot), I thought it should be U+066B , any comments or ideas why it is not so?
(I am trying to use Persian numbers in my plots in GNU R, if it might help.)



    decimal_point     thousands_sep          grouping   int_curr_symbol   currency_symbol 
              "."                ""                ""             "IRR"            "ريال" 
mon_decimal_point mon_thousands_sep      mon_grouping     positive_sign     negative_sign 
              "‍‍'"               "٫"            "\003"                ""               "-" 
  int_frac_digits       frac_digits     p_cs_precedes    p_sep_by_space     n_cs_precedes 
              "0"               "0"               "0"               "1"               "0" 
   n_sep_by_space       p_sign_posn       n_sign_posn 
              "1"               "1"               "1" 

Regards, 
Majid Einian,
PhD Candidate in "Economics",
Graduate School of Management and Economics,
Sharif University of Technology,
Tehran, IRAN

Roozbeh Pournader

unread,
Dec 5, 2011, 7:17:05 PM12/5/11
to Majid Einian, persian-...@googlegroups.com
The glibc model for generating numbers is kind of complex. For using native digits, one is supposed to use the "I" flag. For example, in order to get ۱۲٫۳, you should do printf("%I.1f", 12.3).

This is to make sure applications have a way to output both ASCII numbers, and native numbers.

Roozbeh

Reply all
Reply to author
Forward
0 new messages