Hi
I need to convert an float number to an interger
example:
iNumber = 10
fNumber = 2.35
iNumber2 = iNumber/fNumber --the result of this has to be an interger
-- but the value i get when i divide 10 with 2.35 is 4.25531....
-- i just want to have the value 4, and not 4.25531....
please help
float to interger?
Moderators: Shine, Insert_witty_name
Code: Select all
math.floor( iNumber2 )
shows up things like this