Lua: Rounding numbers and then truncate August 4, 2023 by Tarik There is no build-in math.round() function in Lua, but you can do the following: print(math.floor(a+0.5)).