ofBigInts method

FpvType ofBigInts(
  1. BigInt exponent,
  2. BigInt mantissa, {
  3. bool sign = false,
})

FloatingPointValue constructor from a set of BigInts of the binary representation and the size of the exponent and mantissa

Implementation

FpvType ofBigInts(BigInt exponent, BigInt mantissa, {bool sign = false}) =>
    populate(
        sign: LogicValue.ofBigInt(sign ? BigInt.one : BigInt.zero, 1),
        exponent: LogicValue.ofBigInt(exponent, exponentWidth),
        mantissa: LogicValue.ofBigInt(mantissa, mantissaWidth));