lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> Why?
> The main reason for using float instead of double is to reduce 
memory use,
> Someone in the list mentioned that doubles in some machine were 
very slow.
> I'd like to hear more about this.

Like it was just mentioned by someone else, one example would be the 
Playstation 2 game console. It's hardware supports floats but not 
doubles. If any instruction uses doubles then the calculations are 
emulated in software and are then really slow.

The only problem i can see with using floats is that it then becomes 
imposible to represent 32 bit integer values in Lua. 

Sebastien St-Laurent