mirror of
https://github.com/SashLilac/cambridge.git
synced 2024-12-22 13:39:02 -06:00
Added a tostring function for bigints
This commit is contained in:
parent
035f6dd7b4
commit
38947e00c0
@ -63,6 +63,9 @@ function bigint.new(num)
|
||||
end,
|
||||
__le = function(lhs, rhs)
|
||||
return bigint.compare(lhs, rhs, "<=")
|
||||
end,
|
||||
__tostring = function()
|
||||
return bigint.unserialize(self, "s")
|
||||
end
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user