[Gambas-user] LOCALEs and , or .

Benoit Minisini gambas at ...1...
Mon Mar 10 13:22:41 CET 2008


On samedi 8 mars 2008, Kari Laine wrote:
> Hi,
>
> could someone explain to me how this locale thing is supposed to work
> with Gambas.
>
> command CFloat(amount1.Text) gives an error when it contains "10,10".
> Naturally it works with context 10.10, but in Finland decimal separator
> is , not .
>
> I tried to start gambas with
>
> LC_NUMERIC = fi_FI.UTF-8 gambas2,  but same error persists.
>
> I don't understand the locale issues well.
>
> I would also be able to print amounts in 1000,00 form.
>
>
> Thanks beforehand. And thank you for all who answered my previous
> question. I am inspecting the grid option.
>
> Best Regards
> Kari
>

As many people seems to have problem for understanding the way Gambas deals 
with localization, I wrote a little article on the wiki about that:

http://gambasdoc.org/help/doc/locale

Please tell me if this article makes things clearer. Do not hesitate to 
comment it, add information or more detailed explanations or examples, and so 
on.

I hope things will be clearer for everybody!

Regards,

-- 
Benoit Minisini




More information about the User mailing list