toBigInt method

BigInt toBigInt()

Convert to BigInt.

Implementation

BigInt toBigInt() =>
    (sign == LogicValue.one ? BigInt.from(-1) : BigInt.from(1)) *
    magnitude.toBigInt();