In the next few weeks, your wiki will be migrated to a Fandom.com domain. Learn more here.

Module:MathOps

From Dead by Daylight Wiki
Jump to: navigation, search

local p = {}

function p.round(num, decPlaces)
  local mult = 10^(decPlaces or 0)
  return math.floor(num * mult + 0.5) / mult
end

return p