valueOf method

String valueOf()

Return a string representing the value of this Big. Return exponential notation if this Big has a positive exponent equal to or greater than Big.pe, or a negative exponent equal to or less than Big.ne. Include the sign for negative zero.

Implementation

String valueOf() {
  var x = this;

  if (Big.strict == true) {
    throw BigError(
      code: BigErrorCode.invalidNumber,
    );
  }
  return stringify(x, x.e <= ne || x.e >= pe, true);
}