Arbitrary-precision integers, homed on the Bigint class.
Auto-promotes when integers exceed native range; the generic operators
dispatch bigint operands through the type ops. API: (Bigint + a b), …
+Add numbers, promoting to bigint on overflow.
Parameters:
INT|BIGINT — Numbers to addReturns: INT|BIGINT — Sum
-Subtract numbers, promoting to bigint on overflow. Unary form negates.
Parameters:
INT|BIGINT — Numbers to subtractReturns: INT|BIGINT — Difference
*Multiply numbers, promoting to bigint on overflow.
Parameters:
INT|BIGINT — Numbers to multiplyReturns: INT|BIGINT — Product
/Divide numbers; bigint operands dispatch through the type ops.
Parameters:
INT|BIGINT — Numbers to divideReturns: INT|BIGINT — Quotient
Bigint(Bigint bigint? x)Test whether a value is an arbitrary-precision integer.
Parameters:
ANY — Value to testReturns: BOOL — True if x is a bigint
(Bigint + a b)Add two bigints (ints coerce).
Parameters:
INT|BIGINT — First operandINT|BIGINT — Second operandReturns: INT|BIGINT — Sum, demoted to integer if it fits
(Bigint - a b)Subtract two bigints (ints coerce).
Parameters:
INT|BIGINT — First operandINT|BIGINT — Second operandReturns: INT|BIGINT — Difference, demoted to integer if it fits
(Bigint * a b)Multiply two bigints (ints coerce).
Parameters:
INT|BIGINT — First operandINT|BIGINT — Second operandReturns: INT|BIGINT — Product, demoted to integer if it fits
(Bigint / a b)Divide two bigints (truncating; ints coerce).
Parameters:
INT|BIGINT — DividendINT|BIGINT — DivisorReturns: INT|BIGINT — Quotient, demoted to integer if it fits
(Bigint % a b)Remainder of bigint division (ints coerce).
Parameters:
INT|BIGINT — DividendINT|BIGINT — DivisorReturns: INT|BIGINT — Remainder, demoted to integer if it fits
(Bigint < a b)Test whether a is less than b (ints coerce).
Parameters:
INT|BIGINT — Left operandINT|BIGINT — Right operandReturns: BOOL — True if a < b
(Bigint = a b)Test whether a equals b (ints coerce).
Parameters:
INT|BIGINT — Left operandINT|BIGINT — Right operandReturns: BOOL — True if a equals b
(Bigint would-overflow-add? a b)Test whether addition of two native integers would overflow.
Parameters:
INT — First operandINT — Second operandReturns: BOOL — True if a + b would overflow native integer
(Bigint would-overflow-mul? a b)Test whether multiplication of two native integers would overflow.
Parameters:
INT — First operandINT — Second operandReturns: BOOL — True if a * b would overflow native integer