const virtual class math::BigInt
sys::Obj math::BigInt
Immutable arbitrary-precision integer.
- and
- bitLen
-
Int bitLen()
Returns the number of bits in the minimal two's-complement representation of this BigInteger, excluding a sign bit.
- clearBit
- compare
- decrement
- defVal
-
const static BigInt defVal
Default value is 0.
- equals
- flipBit
- fromStr
-
static new fromStr(Str s, Int radix := 10, Bool checked := true)
- increment
- makeBuf
-
new makeBuf(Buf bytes)
- makeInt
-
new makeInt(Int val)
- negate
- not
-
BigInt not()
- one
-
const static BigInt one
- or
- setBit
- shftr
- shiftl
- signum
-
Int signum()
-1, 0, 1 if the BigInt is negative, zero, or positive.
- testBit
- toBuf
-
Buf toBuf()
- toInt
-
Int toInt(Bool checked := true)
Convert the number to an Int.
If the value is out-of-range and checked is true, an Err is thrown. Otherwise the value is truncated, with possible loss of sign.
- toStr
-
virtual override Str toStr()
- xor
- zero
-
const static BigInt zero