[Gambas-user] number format
Epíleg
epileg at ...626...
Sun Jan 27 23:38:42 CET 2008
En/na Leonardo Miliani ha escrit:
> Epíleg ha scritto:
>> En/na Leonardo Miliani ha escrit:
>>> Epíleg ha scritto:
>>>> But in a France French locale:
>>>>
>>>> Val("1 234 567,89") => 1
>>> Same for me with Italian locale.
>>> I must first remove all the white spaces, then substitute the "," with
>>> "." and than get the value of the number.
>>>
>> Well, Italian case is different because, as Catalan and Spanish (Spain and others), the locale are not properly set, at least in my Ubuntu 7.10.
>>
>> $ LANG=it_IT.UTF-8 locale -k LC_NUMERIC
>> decimal_point=","
>> thousands_sep=""
>> grouping=-1;-1
>> numeric-decimal-point-wc=44
>> numeric-thousands-sep-wc=0
>> numeric-codeset="UTF-8"
>>
>> As You can see, there isn't set the thousands separator value.
>
> Uhm... I didn't know about those settings....
> How can I check them?
>
Just type "locale -k LC_NUMERIC" in a console.
For more info, "man locale".
Regards,
Epíleg.
More information about the User
mailing list