Skip to content

rationalToString

rationalToString(value, radix?): string

Defined in: packages/math-numbers/src/rational/rational-to-string.ts:10

p/q, or just p when the denominator is one — exact in any radix, since both parts are integers.

Readonly<Rational>

The rational to render.

number

The base for both parts, from 2 to 36. Defaults to 10.

string