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

File Rational.ts

packages/effect/src/Rational.ts  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1/**
2 * Exact rational numbers for ratios that decimal arithmetic cannot represent.
3 * A `Rational` stores a `bigint` numerator and denominator in lowest terms, so
4 * values such as one third survive multiplication, comparison and compounding

Callers

nothing calls this directly

Calls 11

sumCoprimeFunction · 0.85
multiplyCoprimeFunction · 0.85
exactRootFunction · 0.85
EquivalenceFunction · 0.85
roundingAdjustmentFunction · 0.85
someMethod · 0.80
BigIntInterface · 0.70
canonicalFunction · 0.70
formatFunction · 0.70
makeMethod · 0.65
mapMethod · 0.45

Tested by

no test coverage detected