сряда, 12 ноември 2014 г.

How to change the comma like a decimal separator

I have absolutely no idea why my Sabayon uses the comma as a decimal separator, but it does. Go figure. Anyway, it turned out, you can see your locale settings by typing
$locale
in BASH. An it will return a list of the setting used for different things like Date, Currency etc. Since I care only about numerical activities, this is the only thing I wanted to change.

So I found that this could be changed from SystemSettings->Locale, but since you need to log out for this to work, I found a simple way.

To do it just for the session, do
$ export LC_NUMERIC="en_US.UTF-8" 
This will change the separator to my beloved point. You can add this to ~/.bashrc or ~/.bash_profile to make it permanent, but I think that SystemSettings will do the trick for you anyway.