[Gambas-user] Math bugs??

Nelson Ferraz nferraz at ...184...
Sat Jun 12 17:37:51 CEST 2004


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".

http://c2.com/cgi/wiki?PrematureOptimization

[]s

Nelson




More information about the User mailing list