FloatingPointValue.ofBigInts constructor

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

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

Implementation

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