const virtual class math::BigInt

sys::Obj
  math::BigInt

Source

Immutable arbitrary-precision integer.

and

BigInt and(Obj b)

Source

bitLen

Int bitLen()

Source

Returns the number of bits in the minimal two's-complement representation of this BigInteger, excluding a sign bit.

clearBit

BigInt clearBit(Int b)

Source

compare

virtual override Int compare(Obj obj)

Source

decrement

@Operator
BigInt decrement()

Source

defVal

const static BigInt defVal

Source

Default value is 0.

equals

virtual override Bool equals(Obj? obj)

Source

flipBit

BigInt flipBit(Int b)

Source

fromStr

static new fromStr(Str s, Int radix := 10, Bool checked := true)

Source

increment

@Operator
BigInt increment()

Source

makeBuf

new makeBuf(Buf bytes)

Source

makeInt

new makeInt(Int val)

Source

negate

@Operator
BigInt negate()

Source

not

BigInt not()

Source

one

const static BigInt one

Source

or

BigInt or(Obj b)

Source

setBit

BigInt setBit(Int b)

Source

shftr

BigInt shftr(Int b)

Source

shiftl

BigInt shiftl(Int b)

Source

signum

Int signum()

Source

-1, 0, 1 if the BigInt is negative, zero, or positive.

testBit

Bool testBit(Int b)

Source

toBuf

Buf toBuf()

Source

toInt

Int toInt(Bool checked := true)

Source

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()

Source

xor

BigInt xor(Obj b)

Source

zero

const static BigInt zero

Source