scale property
int
get
scale
Gets the scale of this BigRational, which is the number of decimal places.
Returns an integer representing the scale of this BigRational.
Implementation
int get scale {
int scale = 0;
BigRational r = this;
while (r.denominator != BigInt.one) {
scale++;
r *= ten;
if (scale >= _BigRationalConst.maxScale) break;
}
return scale;
}