toString method

  1. @override
String toString({
  1. bool integer = false,
})
override

Return a string representation of FloatingPointValue. if integer is true, return sign, exponent, mantissa as integers. if integer is false, return sign, exponent, mantissa as ibinary strings.

Implementation

@override
String toString({bool integer = false}) {
  if (integer) {
    return '(${sign.toInt()}'
        ' ${exponent.toInt()}'
        ' ${mantissa.toInt()})';
  } else {
    return '${sign.toString(includeWidth: false)}'
        ' ${exponent.toString(includeWidth: false)}'
        ' ${mantissa.toString(includeWidth: false)}';
  }
}