Skip to content

Commit 74ec3fa

Browse files
committed
compare table with number fix
1 parent f591508 commit 74ec3fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/misc.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ function Cryptid.pluralize(str, vars)
216216
end)
217217
for _, k in ipairs(keys) do
218218
if fch(checks[k], "=") then
219-
if math.abs(to_big(num) - k) < to_big(0.001) then
219+
if to_big(math.abs((num) - k)) < to_big(0.001) then
220220
return string.sub(checks[k], 2, -1)
221221
end
222222
elseif fch(checks[k], "<") then

0 commit comments

Comments
 (0)