[Gambas-user] Stange problem with CInt
Steven Lobbezoo
steven at ...1652...
Fri Mar 7 16:19:38 CET 2008
In that case :
from the samples in the doc :
Example
PRINT CInt(3.6)
________________________________________________________________________
3
Is wrong, someone should change it.
However, I think the sample is right, and the actual effect when there
is a point is wrong.
Steven
Le vendredi 07 mars 2008 à 14:17 +0100, Benoit Minisini a écrit :
> On vendredi 7 mars 2008, Steven Lobbezoo wrote:
> > Hi,
> >
> > I have a strange problem with CInt
> >
> > I do :
> > i = CInteger("123.00")
> >
> > where i is an integer and "123.00" a string of course
> > I tried Cint and CInteger
> >
> > I get a message :
> > Type Mismatch : Wanted Integer, Got string instead
> >
>
> "123.00" is not an integer because of the point. "123" is. The error message
> is not really accurate in that case.
>
> Regards,
>
More information about the User
mailing list