remove math.module

because it's do same as math.fmod
This commit is contained in:
Pinya
2018-07-22 16:45:24 +03:00
parent 22227a88a5
commit 44795076f7
2 changed files with 2 additions and 15 deletions
-13
View File
@@ -58,19 +58,6 @@ function math.modf(i)
return int, i - int
end
function math.modulo(x, y)
x = type(x) ~= "number" and tonumber(i) or x
y = type(y) ~= "number" and tonumber(i) or y
if type(x) ~= "number" then
error(format("bad argument #1 to 'modulo' (number expected, got %s)", x and type(x) or "no value"), 2)
elseif type(y) ~= "number" then
error(format("bad argument #2 to 'modulo' (number expected, got %s)", y and type(y) or "no value"), 2)
end
return x - floor(x / y) * y
end
function math.cosh(i)
i = type(i) ~= "number" and tonumber(i) or i