View Single Post
nicolai's Avatar
Posts: 1,637 | Thanked: 4,424 times | Joined on Apr 2009 @ Germany
#5
Hello,

as far as I know, scanf uses the current locale setting to determine
which char is used as "decimal_point".
You can view your locale settings with the command "locale".

With locale settings for germany for example:
Code:
 
~$ locale
LANG=de_DE
LC_CTYPE="de_DE"
LC_NUMERIC=de_DE
LC_TIME=de_DE
....
Code:
~ $ locale -ck decimal_point 
LC_NUMERIC
decimal_point =","
nicolai