Example of Basic Attributes of BigInt

The following is an example of initializing the BigInt object and querying the basic attributes of the object:

import std.math.numeric.*

main() {
    let int = BigInt.parse("-123456")
    println("BigInt: ${int}")
    println("BigInt sign: ${int.sign}")
    println("BigInt bitLen: ${int.bitLen}")
    return 0
}

Running result:

BigInt: -123456
BigInt sign: -1
BigInt bitLen: 18