ofInts method

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

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

Implementation

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