Once again, an extremely apparent novice Lua question:
I can't seem to find how to convert a floating point number to an integer.
if x = 7.34934 I want to convert x to 7
Also if x = 7.9348, I still want to convert it to 7.
Any ideas on how I can do this, did I miss the function somewhere?
I can't seem to find how to convert a floating point number to an integer.
if x = 7.34934 I want to convert x to 7
Also if x = 7.9348, I still want to convert it to 7.
Any ideas on how I can do this, did I miss the function somewhere?