Dead by Daylight Wiki

local p = {}

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

return p