[Gambas-user] Stange problem with CInt

Benoit Minisini gambas at ...1...
Fri Mar 7 16:16:45 CET 2008


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.

-- 
Benoit Minisini




More information about the User mailing list