lua-users home
lua-l archive

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



On 3 Jul 2006, at 20:09, Jose Marin wrote:

Hello.

On modern hardware, are there any significant
reasons/advantages of to compile Lua using 'floats'
for numbers over Lua using 'doubles'?

Modern as in modern desktop / server hardware? No. In fact floats may cause a slight penalty due to conversions in and out of double. Depending on your application (and struct alignment) you _might_ get better cache use from float.

Embedded processors, consoles, set tops, mobile phones, all of these might be better using float.

drj