FloatingPointValue.ofInts constructor

FloatingPointValue.ofInts(
  1. int exponent,
  2. int mantissa, {
  3. int exponentWidth = 0,
  4. int mantissaWidth = 0,
  5. bool sign = false,
})

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

Implementation

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