[Gambas-user] DIV

Jussi Lahtinen jussi.lahtinen at ...626...
Thu Jul 12 18:52:00 CEST 2012


> This is for performance reasons: '\' (or DIV) operator is faster than '/'.
>

OK.



> If you want to use DIV like '/', just use '/'!
>

"/" is different thing, it doesn't give integer quotient.
To get integer quotient from floats I use "iQuotient = Floor( a / b )".


Jussi



More information about the User mailing list