Skip to content

integralFractionalFromNumber

integralFractionalFromNumber(value): IntegralFractional

Defined in: packages/math-numbers/src/integral-fractional.ts:111

Decomposes a number through its shortest round-tripping decimal form — the one String(value) produces — so the result is the numeral a reader would see, not the exact binary expansion behind it.

number

The number to decompose.

IntegralFractional

The decomposition.

If value is NaN or infinite.