[Gambas-user] Math bugs??

Benoit Minisini gambas at ...1...
Sun Jun 13 14:46:18 CEST 2004


On Saturday 12 June 2004 17:37, Nelson Ferraz wrote:
> Fabien Bodard wrote:
> > not a bug ... in gambas say : 1/3.0
> > The '.' force gambas to return a float result.
> >
> > By this way gambas take less ressources.
>
> This trick can be useful in many arithmetic operations, but should be
> disabled when the expression involves a float division. That's why we
> have the backslash division (1\3).
>
> "Premature optimisation is the root of all evil in programming".
>

Yes, but this is not an optimization. This is how work all operators in 
Gambas: /, and *, +, -, ...

-- 
Benoit Minisini
mailto:gambas at ...1...




More information about the User mailing list