Skip to content

rationalToNumber

rationalToNumber(value): number

Defined in: packages/math-numbers/src/rational/rational-to-number.ts:12

The nearest binary64 approximation.

Dividing the two Number conversions loses the value entirely once either part exceeds Number.MAX_VALUE, so wide operands are scaled down by their common bit length first.

Readonly<Rational>

number