MCPcopy Create free account
hub / github.com/Effect-TS/effect / format

Function format

packages/effect/src/Rational.ts:984–984  ·  view source on GitHub ↗
(n: Rational)

Source from the content-addressed store, hash-verified

982 * @since 4.1.3
983 */
984export const format = (n: Rational): string => `${n.numerator}/${n.denominator}`
985
986const bitLength = (n: bigint): number => n.toString(2).length
987

Callers 2

toStringFunction · 0.70
Rational.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected