precision property

int get precision

Gets the precision of this BigRational, which is the total number of significant digits.

Returns an integer representing the precision of this BigRational.

Implementation

int get precision {
  final toAbs = abs();
  return toAbs.scale + toAbs.toBigInt().toString().length;
}