My favorites
← Electronics calculators

Decimal and fraction

Calculate, convert and check circuit values in your browser.

Inputs

Results

Fraction
5/8
Decimal
0.625
Approximation error
0

Questions, examples and engineering limits

Convert decimals to reduced fractions and fractions to decimals. Set a maximum denominator and inspect approximation error for repeating decimals.

Content updated:

How is Decimal to Fraction Calculator and Simplifier calculated?

Use x = numerator / denominator; gcd(n,d). Convert decimals to reduced fractions and fractions to decimals. Set a maximum denominator and inspect approximation error for repeating decimals.

Sources: developer.mozilla.org [1]

How do I calculate this example: 0.625?

5/8. This is a calculated example under the model stated above; it is not a measured component specification.

Which units does Decimal to Fraction Calculator and Simplifier use?

dimensionless. Convert prefixes before substituting values; keep the input and output units attached to every number.

Sources: developer.mozilla.org [1]

Is 0.333333 exactly one third?

No. A finite decimal differs from the infinite repeating decimal 0.333…. The displayed error quantifies the chosen approximation.

Why limit the denominator?

A smaller limit favors simpler fractions; a larger limit can reduce error. This tool allows a maximum denominator up to 10000.

Can the denominator be zero?

No. Division by zero is undefined. Negative fractions are supported, with the sign normalized and common factors removed.

Answers use the stated model and units. Examples are calculated values, not measurements or component ratings.