Skip to content

Commit ac7d3be

Browse files
committed
why wasnt it doing this already???
1 parent 1a52159 commit ac7d3be

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/misprintize.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,5 +511,9 @@ function Cryptid.manipulate_value(num, args, is_big, name)
511511
num = to_number(num)
512512
return to_number(Cryptid.sanity_check(num, false))
513513
end
514-
return Cryptid.sanity_check(num, is_big)
514+
local val = Cryptid.sanity_check(num, is_big)
515+
if to_big(val) > to_big(-1e100) and to_big(val) < to_big(1e100) then
516+
return to_number(val)
517+
end
518+
return val
515519
end

0 commit comments

Comments
 (0)