FloatingPointValue.ofString constructor

FloatingPointValue.ofString(
  1. String fp,
  2. int exponentWidth,
  3. int mantissaWidth, {
  4. int radix = 2,
})

FloatingPointValue constructor from a radix-encoded string representation and the size of the exponent and mantissa

Implementation

FloatingPointValue.ofString(String fp, int exponentWidth, int mantissaWidth,
    {int radix = 2})
    : this.ofBinaryStrings(
          _extractBinaryStrings(fp, exponentWidth, mantissaWidth, radix).sign,
          _extractBinaryStrings(fp, exponentWidth, mantissaWidth, radix)
              .exponent,
          _extractBinaryStrings(fp, exponentWidth, mantissaWidth, radix)
              .mantissa);