A rational numbers and decimals calculator converts fractions to decimal form, turns terminating or repeating decimals into fractions, and compares rational values. Enter a fraction or decimal to get an equivalent representation; the examples below explain how to check the result and what repeating digits mean.
Formula
This calculator divides the numerator by the denominator:
x = n / d
- n is the numerator, the top number of the fraction (unitless).
- d is the denominator, the bottom number (unitless and at least 1 here).
- x is the resulting decimal value (unitless).
The first output displays x rounded to six decimal places. The second output repeats the same numerical value in decimal form; it does not reduce the input fraction or convert a decimal back into a fraction. The fraction itself is represented by the two input fields, n/d. To compare two fractions, calculate both values using the same denominator-and-division rule, then compare the results without rounding if exact ordering matters.
Worked Example
Using the block’s defaults, n = 3 and d = 4:
- Write the fraction: 3/4.
- Divide the numerator by the denominator: 3 ÷ 4 = 0.75.
- Display to six decimal places: 0.750000.
The calculator returns 0.750000 for both outputs. The fraction 3/4 and decimal 0.75 name the same rational number.
What Rational Numbers and Decimals Mean
A rational number is any number that can be written as a ratio of two integers, a/b, where b is not zero. Integers, fractions such as 7/8, and decimals such as 2.4 are rational: 2.4 equals 24/10, which reduces to 12/5. Negative values are rational too, as are zero and whole numbers.
In base-ten decimal notation, a rational number’s decimal expansion either ends or eventually repeats a block of digits. For example, 3/8 = 0.375 terminates. The fraction 1/3 = 0.333… repeats 3 forever, while 1/6 = 0.1666… has a nonrepeating digit followed by repeating 6s. A decimal that neither terminates nor eventually repeats is irrational, so it cannot be represented exactly by a ratio of integers.
A calculator may show only a finite number of decimal places, even when the exact decimal repeats. A displayed result such as 0.333333 is a rounded approximation to 1/3, not an exact replacement for it. Keep the fraction when exactness matters.
How to Convert Between Fractions and Decimals
To convert a fraction to a decimal, divide the numerator by the denominator. A denominator of zero is invalid because division by zero is undefined. For a negative fraction, place the negative sign on the numerator, denominator, or in front of the fraction; the value is the same as long as there is only one negative sign.
To convert a terminating decimal to a fraction, use its place value, then simplify. For example, 0.625 has three digits after the decimal point, so it is 625/1000. Divide top and bottom by 125 to get 5/8.
To convert a repeating decimal to a fraction, use an algebraic method. For 0.272727…, set x = 0.272727… and multiply by 100, because the repeating block has two digits: 100x = 27.272727… Subtract x from 100x: 99x = 27, so x = 27/99 = 3/11. If the repeating block begins after some nonrepeating digits, account for those digits as well; do not treat the entire decimal as a repeating block.
Using the Calculator to Compare Values
For two fractions with positive denominators, cross-multiplication can compare them exactly without converting to decimals. To compare a/b and c/d, compare a × d with c × b. If a × d is smaller, a/b is smaller; if the products are equal, the fractions are equal. This rule follows from multiplying both sides by the positive product b × d.
For instance, compare 5/12 and 3/7: 5 × 7 = 35, while 3 × 12 = 36. Since 35 is less than 36, 5/12 is less than 3/7. Decimal conversion is convenient for an intuitive estimate, but rounding can hide a small difference. If denominators are negative, first rewrite the fractions with positive denominators before applying the rule.
Fractions can also be compared by rewriting them with a common denominator. For 1/4 and 2/7, a common denominator is 28, so the fractions are 7/28 and 8/28. Therefore 1/4 is smaller. Cross-multiplication is often quicker; common denominators can make the size relationship easier to see.
Rounding, Precision, and Common Errors
- Do not confuse an approximation with an exact value. A finite display of 1/3 is rounded; the fraction remains exact.
- Check the denominator. Zero is never allowed. A negative denominator is mathematically valid, but can be moved to the numerator to make the denominator positive.
- Reduce only when appropriate. Divide numerator and denominator by their greatest common divisor; this changes the form, not the value.
- Watch repeating-decimal notation. In 0.1(6), the parentheses commonly indicate that 6 repeats: 0.1666… The notation varies by textbook, so state the repeating block clearly.
- Keep sufficient precision in intermediate work. Rounding early can change a later comparison or calculation, particularly when values are close.
The calculator’s six-place decimal display is useful for ordinary inspection, but it is not a claim that every result has only six decimal places. For a repeating result, use the fraction or repeat notation to record the exact value. This calculator also accepts only nonnegative numerators and positive denominators as configured; to work with negative values, place the sign in the written result or use a tool whose input fields allow signed numbers.
Frequently Asked Questions
Is every decimal a rational number?
No. Terminating decimals and decimals that eventually repeat are rational. Nonterminating decimals that never settle into a repeating pattern are irrational, such as the decimal expansion of √2.
How do I turn 0.75 into a fraction?
Write 0.75 as 75/100 because there are two digits after the decimal point. Divide numerator and denominator by 25 to obtain 3/4.
Can a calculator show a repeating decimal exactly?
Usually its display has a limited number of digits, so it shows an approximation. Keep the fraction for an exact result, or write the repeating block with notation such as 0.333… for 1/3.
Why is division by zero undefined?
There is no number that, when multiplied by zero, gives a nonzero numerator. A fraction with zero as its denominator therefore has no defined value.
What is the difference between a rational and an irrational number?
A rational number can be expressed as a ratio of integers with a nonzero denominator. An irrational number cannot; its decimal expansion neither terminates nor eventually repeats.
Related
Formula used
in n | Numerator | - | 3 | - | 1000000000 in d | Denominator | - | 4 | 1 | 1000000000 out decimal | Decimal value | - | n / d | 6 out fraction | Fraction value | - | n / d | 6
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.
More cards in this drawer
- SSE Calculator: What It Measures and How It Works
- Power of a Number Calculator: Exponents Explained32.000000
- Power of Two Calculator: Find 2ⁿ1,024
- Greater or Less Than Calculation: How to Compare Values1
- Greater Than 10 Calculator: Compare Any Number
- Calculate Least Squares Regression Equation