BigInt (gb.gmp)
This class represents an integer number with potentially unlimited number of digits.
It implements standard arithmetic and comparison operators (i.e.
+
,
-
,
*
,
/
,
^
,
Abs
,
=
,
<>
,
<
,
>
,
<=
,
>=
) on all these objects, and provides automatic
conversions with native Gambas numerical datatypes.
Static methods
And
|
Return the bitwise-and of A and B.
|
Fact
|
Return the factorial of N.
|
Fibonacci
|
Return the Nth Fibonacci number.
|
FromString
|
Convert a string into a big integer.
|
GCD
|
Return the greatest common divisor of A and B.
|
LCM
|
Return the least common multiple of A and B.
|
Not
|
Return the one's complement of A.
|
Or
|
Return the bitwise-inclusive or of A and B.
|
Xor
|
Return the bitwise-exclusive or of A and B.
|
Vlastnosti
Even
|
Return if the big integer is even.
|
Odd
|
Return if the big integer is odd.
|
Metoda
BChg
|
Invert the Bitth bit and return itself.
|
BClr
|
Clear the Bitth bit and return itself.
|
BSet
|
Set the Bitth bit and return itself.
|
BTst
|
Return if the Bitth bit is set.
|
InvM
|
Compute the inverse modulo Mod and return the result.
|
PowM
|
Return the number raised to Exp modulo Mod.
|
Shl
|
Shift the number left by Bits bits, and return it.
|
ToString
|
Convert the big integer to its string representation.
|