Skip to content

rationalFractionalPrecision

rationalFractionalPrecision(value): number

Defined in: packages/math-numbers/src/rational/rational-fractional-precision.ts:19

Decimal places in the exact expansion, or Infinity when it never terminates — which happens exactly when the reduced denominator has a prime factor that ten does not.

Where it does terminate the count is max(v₂, v₅) of the denominator, not their sum: scaling by a power of ten supplies a two and a five at once, so the scarcer factor rides along with the other rather than costing a place of its own. 3/50 is 0.06 — two places, from 2¹·5², not three.

Readonly<Rational>

The rational to measure.

number

The place count, or Infinity.