Floats and whole numbers
Posted: Mon Jan 26, 2015 5:16 pm
Hello,
With the introduction of floats i need a way to convert the results of division into whole numbers. Everything i found so far points to math.floor which is missing.
pre floats change
>=10/3
3
post floats change
>=10/3
3.333333333
I am a newbie to Lua so any help would be very welcome
Thanks
Rob
With the introduction of floats i need a way to convert the results of division into whole numbers. Everything i found so far points to math.floor which is missing.
pre floats change
>=10/3
3
post floats change
>=10/3
3.333333333
I am a newbie to Lua so any help would be very welcome
Thanks
Rob