Browse Source

Fixed missing module variable on round() function

master
Christopher 9 years ago
parent
commit
ce04d701e0
  1. 2
      Assets/Fungus/Thirdparty/FungusLua/Resources/Lua/fungus.txt

2
Assets/Fungus/Thirdparty/FungusLua/Resources/Lua/fungus.txt vendored

@ -18,7 +18,7 @@ end
-- rounds a number to the nearest decimal places
-- e.g. round(1.523, 100) -- 1.52
function round(val, decimal)
function M.round(val, decimal)
if (decimal) then
return math.floor( (val * 10^decimal) + 0.5) / (10^decimal)
else

Loading…
Cancel
Save