[Gambas-user] Integer BUg Re Argggggghhhhhhh
Charlie
karl.reinl at ...9...
Thu Nov 13 23:34:42 CET 2003
Fabien Bodard schrieb:
>hi Olivier, Ahmad, Nelson, an others
>in fact in gambas you must to have at less one float number in operation to
>have a float result.
>
>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
>
>
realy funny int and float 4/2 makes > 4
are youe shure
Charlie
More information about the User
mailing list