To simply round a number you can use math.floor(x + .5). No actual "conversion" is necessary though since lua does not differentiate between integers and floats (all numbers are represented internally as doubles.)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.