ofString method

FpvType ofString(
  1. String fp, {
  2. int radix = 2,
})

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

Implementation

FpvType ofString(String fp, {int radix = 2}) {
  final extracted =
      _extractBinaryStrings(fp, exponentWidth, mantissaWidth, radix);
  return ofBinaryStrings(
      extracted.sign, extracted.exponent, extracted.mantissa);
}