What this calculator does
Convert a terminating or repeating decimal approximation to a reduced fraction.
How it works
The calculator evaluates fraction is the closest reduced rational with denominator no greater than the selected maximum. Inputs are checked before calculation, and invalid values such as zero denominators or out-of-range selections produce a clear error instead of a misleading result.
Input query strings and outputs
Use an input name in this page’s URL as ?name=value, and join additional inputs with &. Portable shared links may instead use the compact ?ac= state parameter.
Input query strings
2-
?decimal=Decimal valueText · Required · Default: 0.375
-
?maxDenominator=Maximum denominatorNumber · Required · Default: 1,000,000
Outputs
3-
fractionReduced fractionText · Primary output
-
mixedNumberMixed numberText
-
approximationErrorApproximation errorNumber
Inputs and results
The inputs are Decimal value, Maximum denominator. Results include Reduced fraction, Mixed number, Approximation error.