Re: [Gambas-user] Converting strings to numbers with localization issues

2010-08-23 Thread Ron
Fabien, you are right, of course... they will be translated by Str$ I changed PRINT to WRITE just to test, and the pattern is the same for all 4. Finally a way to get this fixed, now I have to check my massive project for my wrongly used Val()'s Thanks both Benoît and Fabien. Regards, Ron

Re: [Gambas-user] Converting strings to numbers with localization issues

2010-08-23 Thread Fabien Bodard
CFLoat return a Float variable ... so PRINT just see a variable and not a convertion funtion ... PRINT do what it do for every float, display the number in localization settings. 2010/8/23 Ron : >  On 23-8-2010 12:19, Benoît Minisini wrote: >>>    On 23-8-2010 11:54, Benoît Minisini wrote: >

Re: [Gambas-user] Converting strings to numbers with localization issues

2010-08-23 Thread Ron
On 23-8-2010 12:19, Benoît Minisini wrote: >>On 23-8-2010 11:54, Benoît Minisini wrote: In my project I have several temp values in the form of 31.72 C They are stored as string and I convert them with Val(sValue) My project is translatable, default language is en

Re: [Gambas-user] Converting strings to numbers with localization issues

2010-08-23 Thread Benoît Minisini
> On 23-8-2010 11:54, Benoît Minisini wrote: > >>In my project I have several temp values in the form of 31.72 C > >> > >> They are stored as string and I convert them with Val(sValue) > >> > >> My project is translatable, default language is en_US.UTF-8 > >> > >> If I change System.Langua

Re: [Gambas-user] Converting strings to numbers with localization issues

2010-08-23 Thread Ron
On 23-8-2010 11:54, Benoît Minisini wrote: >>In my project I have several temp values in the form of 31.72 C >> >> They are stored as string and I convert them with Val(sValue) >> >> My project is translatable, default language is en_US.UTF-8 >> >> If I change System.Language, Val doesn't kno

Re: [Gambas-user] Converting strings to numbers with localization issues

2010-08-23 Thread Benoît Minisini
> In my project I have several temp values in the form of 31.72 C > > They are stored as string and I convert them with Val(sValue) > > My project is translatable, default language is en_US.UTF-8 > > If I change System.Language, Val doesn't know how to convert the value > correctly (or it does

[Gambas-user] Converting strings to numbers with localization issues

2010-08-23 Thread Ron
In my project I have several temp values in the form of 31.72 C They are stored as string and I convert them with Val(sValue) My project is translatable, default language is en_US.UTF-8 If I change System.Language, Val doesn't know how to convert the value correctly (or it does it correctly,