This commit is contained in:
Agent X 2025-05-29 10:55:51 -04:00
parent 5d48c72d2d
commit 46b9cf5fb8

View file

@ -248,5 +248,5 @@ end
--- @param x number --- @param x number
--- Rounds `x` to the nearest integer value --- Rounds `x` to the nearest integer value
function math.round(x) function math.round(x)
return x > 0 and math.floor(x + 0.5) or math.ceil(x - 0.5) return x > 0 and __math_floor(x + 0.5) or __math_ceil(x - 0.5)
end end