[Gambas-user] Stange problem with CInt

Steven Lobbezoo steven at ...1652...
Fri Mar 7 17:15:36 CET 2008


Why are You ALLWAYS right ;-)

Steven

Le vendredi 07 mars 2008 à 16:16 +0100, Benoit Minisini a écrit :
> On vendredi 7 mars 2008, Steven Lobbezoo wrote:
> > 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
> >
> 
> No, the example is right: it is a conversion from a Float to an Integer. What 
> you tried is a conversion from a String to an Integer, and it does not work 
> the same way.
> 





More information about the User mailing list