[Gambas-user] number format

Epíleg epileg at ...626...
Sun Jan 27 17:19:45 CET 2008


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.

Regards,
Epíleg.





More information about the User mailing list