Rational Tools
Browse all available rational tools.
Available tools
- Canonical Fraction Pair Canonicalize an exact integer fraction into coprime numerator and positive denominator text; zero denominator is rejected.
- Cross Cancelled Fraction Multiplication Exact rational multiplication with cross cancellation using decimal integer text and coprime output; no IEEE-754 precision loss.
- Exact Fraction Addition Exact rational addition using decimal integer text and coprime output; no IEEE-754 precision loss.
- Exact Fraction Division Exact rational division using decimal integer text and coprime output; no IEEE-754 precision loss.
- Exact Fraction Order Compare exact rational values by cross products, preserving large integer precision and normalizing negative denominators.
- Exact Fraction Subtraction Exact rational subtraction using decimal integer text and coprime output; no IEEE-754 precision loss.
- Fraction Base Termination Check Check exact rational termination in an explicit integer radix 2–36 by removing denominator factors shared with that radix.
- Fraction Between Integer Bounds Check exact rational membership in caller-supplied inclusive integer bounds without decimal approximation.
- Fraction Binary Grid Membership Check exact rational membership on an explicitly chosen binary fixed-point grid, not merely denominator power-of-two termination.
- Fraction Common Denominator Plan Plan the least positive common denominator for two canonical exact fractions and report aligned numerators.
- Fraction Cross Product Evidence Expose exact signed cross-product comparison evidence for canonical fractions; evidence is not reduced or rounded.
- Fraction Decimal Termination Check Report exact canonical fraction base-ten termination from reduced denominator factors, not approximate decimal expansion.
- Fraction Floor and Remainder Split an exact rational into mathematical floor and a nonnegative reduced fractional remainder; signed numerators are not truncated toward zero.
- Fraction Mediant Pair Exact rational mediant of canonical positive-denominator pairs using decimal integer text and coprime output; no IEEE-754 precision loss.
- Fraction Nearest Integer Tie Policy Round an exact fraction to a nearest integer with explicit half-even, away-from-zero or positive-infinity tie policy.
- Fraction Reciprocal Pair Return the exact reciprocal of a nonzero rational in canonical integer text; zero reciprocal is rejected.
- Fraction Repeating Cycle Length Trace the exact base-ten remainder cycle of a fraction with reduced denominator at most 10000; terminating fractions have zero repeating cycle length.
- Fraction Sign Classifier Classify exact fraction sign after normalizing denominator sign, retaining zero as a separate numeric class.
- Fraction Terminating Digit Budget Report exact canonical fraction minimal terminating decimal digit budget, or null for nontermination from reduced denominator factors, not approximate decimal expansion.
- Fraction Unit Interval Check Check exact rational membership in the closed unit interval [0,1], normalizing signs and rejecting undefined fractions.