lua-users home
lua-l archive

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


I'm not quite sure what your are asking.. But if you replace all "double" with "float" (and the formatting string %g) you application will use float a numerical base... Lua uses only one base for number.
 
/Erik
----- Original Message -----
From: Nick Trout
Sent: Monday, July 10, 2000 11:19 AM
Subject: Lua with ints and floats

Hi I was just wondering whether anyone had made a version of Lua that handled ints/longs and floats? I realise there could be a number of type/casting problems and doubles could handle both but all arithmetic is done in floats and ints in our application.
 
Cheers,
Nick