[Gambas-user] GambasTester 0.9.9
Benoît Minisini
gambas at ...1...
Mon Nov 15 21:18:33 CET 2010
> If Format$(Pi, "#.##") <> 3.14 Then
> Return 85
> Endif
>
> this test can be true only in country where decimal separator is "."
>
>
> in france ... the decimal separator is ","... then you compare a
> string to a float !!
>
> All the error i have are based on this problem.
>
The problem is your comparison between a string (Format$) and a number. The
number is automatically converted to a string by using CStr(), which does not
use localization contrary to Format$().
--
Benoît Minisini
More information about the User
mailing list