Fractions & Decimals

Nearest Fraction Calculator

Approximate a value by the closest bounded-denominator fraction or chosen fraction increment.

Fractions & Decimals

Enter values

Private calculation in your browser

Use the notation shown in each label and example. Inputs stay on this device and are never sent to a calculation service.

Result

Enter valid values to see the result.

Your entries are calculated in this browser and are not submitted to 365CALCS.COM.

Quick guide

How to use this calculator

  1. Enter values using the notation shown beside each field.
  2. Choose a calculation mode when the tool offers more than one interpretation.
  3. Read the primary answer first, then inspect the supporting details.

Calculation method

Apply the stated definition

Minimise |x − n/d| over the selected candidates.

The calculator validates the mathematical domain before returning a result and does not replace undefined states with zero.

Worked example

Worked example

3.14159 with limit 100 is closest to 311/99.

Minimise |x − n/d| over the selected candidates.

Supported inputs

Precision and limits

Finite, bounded input

Integers, finite decimals, fractions, and mixed numbers are evaluated with exact rational arithmetic wherever the operation permits.

Notation

Enter fractions as a/b and mixed numbers as w n/d. A denominator can never be zero.