BigInt now has a digits method (read comments)
Kind of unnecessary but included for completeness
This commit is contained in:
@@ -106,6 +106,12 @@ function bigint.abs(big)
|
||||
return result
|
||||
end
|
||||
|
||||
-- Return the number of digits in the big
|
||||
function bigint.digits(big)
|
||||
bigint.check(big)
|
||||
return #big.digits
|
||||
end
|
||||
|
||||
-- Convert a big to a number or string
|
||||
function bigint.unserialize(big, output_type, precision)
|
||||
bigint.check(big)
|
||||
|
||||
Reference in New Issue
Block a user