[Gambas-user] Val("1,2") = 12
Jussi Lahtinen
jussi.lahtinen at ...626...
Sat Mar 6 23:35:53 CET 2010
OK, that makes sense.
So, what is preferred method to make sure that given string (example
from textbox) is integer number?
Jussi
2010/3/6 Benoît Minisini <gambas at ...1...>:
>> en_GB.UTF-8
>>
>> But is 1,2 = 12 right in any logic?
>> Also val("1,2,3") = 123
>>
>> Jussi
>>
>
> "," is considered as thousand separators, even if they are misplaced, and they
> are simply ignored.
>
> Maybe the interpreter should be more clever...
>
> --
> Benoît Minisini
>
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
More information about the User
mailing list