[Gambas-user] Integer BUg Re Argggggghhhhhhh
Olivier Coquet
olinux at ...289...
Thu Nov 13 19:17:24 CET 2003
Le Jeudi 13 Novembre 2003 15:15, Fabien Bodard a écrit :
> so
> i as interger
> s as integer
> i = 4
> s = 2
> print i/s => give 5
>
> i as interger
> s as float
> i = 4
> s = 2
> print i/s => give 4.5
>
> i as interger
> s as integer
> i = 4
> s = 2
> print i/CFloat(s) => give 4.5
>
> Fabien Bodard
I think your answer is something like martian peoples can understant :=)
4/2 in float, non float, integer and other give alway on earth, 2..... lol
:=)
regards
olivier
More information about the User
mailing list