If you want to round up the value you can use math.ceil, or to round down the value you can use math.floor (
http://lua-users.org/wiki/MathLibraryTutorial).
If you want to print a formatted value, but retain the actual value in the parameter, you can use string.format (
http://www.lua.org/pil/20.html).