This calculator takes three decimal numbers and sorts them from smallest to largest. It shows the smallest value, the middle value, and the largest value, so you can see the correct ascending order at a glance.
You enter three decimal numbers, one in each box. After you click the calculate button, the page displays the three results: the smallest, the middle, and the largest. The worked example on this page uses the numbers 3.14, 2.718, and 2.718, and the reference table shows how the ordering changes when you vary the first number while keeping the other two fixed.
Formula
Given three decimals a, b, c, the ascending order is:
Smallest = min(a, min(b, c))
Middle = a + b + c − min(a, min(b, c)) − max(a, max(b, c))
Largest = max(a, max(b, c))
All values are unitless. The middle is computed by subtracting the smallest and largest from the sum, which works for any three numbers.
Worked Example
The calculator opens with these default values; each step below is computed from the formula.
| Step | Working | Result |
|---|---|---|
| 1 | First decimal | 3.14 |
| 2 | Second decimal | 2.718 |
| 3 | Third decimal | 2.718 |
| 4 | Smallest (ascending order) = min(3.14,min(2.718,2.718)) | 2.718000 |
| 5 | Middle (ascending order) = 3.14+2.718+2.718-min(3.14,min(2.718,2.718))-max(3.14,max(2.718,2.718)) | 2.718000 |
| 6 | Largest (ascending order) = max(3.14,max(2.718,2.718)) | 3.140000 |
Vary first decimal from 0 to 5 while second=2.718 and third=2.718
| First decimal | Smallest (ascending order) | Middle (ascending order) | Largest (ascending order) |
|---|---|---|---|
| 0.0 | 0.000000 | 2.718000 | 2.718000 |
| 0.5 | 0.500000 | 2.718000 | 2.718000 |
| 1.0 | 1.000000 | 2.718000 | 2.718000 |
| 1.5 | 1.500000 | 2.718000 | 2.718000 |
| 2.0 | 2.000000 | 2.718000 | 2.718000 |
| 2.5 | 2.500000 | 2.718000 | 2.718000 |
| 3.0 | 2.718000 | 2.718000 | 3.000000 |
| 3.5 | 2.718000 | 2.718000 | 3.500000 |
| 4.0 | 2.718000 | 2.718000 | 4.000000 |
| 4.5 | 2.718000 | 2.718000 | 4.500000 |
| 5.0 | 2.718000 | 2.718000 | 5.000000 |
How to read this table
The table below shows the sorted results for different values of the first decimal, while the second and third decimals are both 2.718. Each row gives the first decimal you entered, followed by the smallest, middle, and largest values in ascending order. For example, when the first decimal is 1.5, the order is 1.5, 2.718, 2.718, so the smallest is 1.5 and the middle and largest are both 2.718. When the first decimal is 3.5, the order becomes 2.718, 2.718, 3.5, so the smallest and middle are both 2.718 and the largest is 3.5.
Notice that when the first decimal is less than 2.718, it appears as the smallest; when it is greater than 2.718, it appears as the largest; and when it equals 2.718, all three numbers are the same, so every result is 2.718.
When to Use This Calculator
Use this calculator when you need to compare and order three decimal numbers. It is especially helpful for homework or practice problems that ask you to list decimals from least to greatest. The calculator gives you the sorted order directly, so you can check your own work or see the result quickly.
This tool is designed for three numbers only. Because the calculator uses the standard min and max values, it always produces the correct ascending order for the three inputs. You can use it to verify answers, to understand how ordering works, or to explore what happens when numbers are equal.
The calculator is not meant for ordering more than three numbers. For a longer list, you would need a different sorting method, but for three numbers this calculator is simple and reliable.
How to Read the Result
The result shows three values: the smallest, the middle, and the largest. Together they give you the ascending order of your three input decimals. For example, if you enter 3.14, 2.718, and 2.718, the result shows smallest = 2.718, middle = 2.718, and largest = 3.14. That means the order is 2.718, 2.718, 3.14.
If two or more numbers are equal, the result will show the same value in more than one position. For instance, when the first decimal is 0.5 and the other two are 2.718, the smallest is 0.5, the middle is 2.718, and the largest is 2.718. When all three numbers are equal, all three results are the same.
The results are displayed with six decimal places, but the actual values are exact decimals. You can read the order directly from the three numbers: the first is the smallest, the second is the middle, and the third is the largest.
Method by Hand
To order three decimals by hand, you can follow these steps:
- Compare the whole number parts. The decimal with the smallest whole number part is the smallest, unless the whole number parts are equal.
- If whole number parts are equal, compare the tenths place. The decimal with the smaller digit in the tenths place is smaller.
- Continue comparing digits to the right (hundredths, thousandths, etc.) until you find a difference.
- If all digits are the same, the numbers are equal.
For example, to order 3.14, 2.718, and 2.718, compare the whole number parts: 3 is greater than 2, so 3.14 is the largest. The other two are equal, so the order is 2.718, 2.718, 3.14.
You can also use the formula from the Formula section: find the smallest using min, find the largest using max, and then the middle is the remaining value. This works for any three numbers.
Common Mistakes
Always compare the exact decimal values.
Misreading the order: The result gives ascending order (smallest to largest). Make sure you read the first value as the smallest, not the largest. For instance, with inputs 3.5, 2.718, and 2.718, the smallest is 2.718 and the largest is 3.5.
Forgetting that equal numbers can appear in multiple positions: If two numbers are equal, the middle and smallest (or largest) can be the same value. For example, with 2.5, 2.718, and 2.718, the smallest is 2.5, but the middle and largest are both 2.718.
Using the middle formula for more than three numbers: The middle formula on this page works only for three numbers. For four or more numbers, you cannot simply subtract the smallest and largest from the sum to get the middle.
Limits of the Formula
The formula used on this page is designed for exactly three numbers. It finds the smallest and largest using the min and max functions, and then the middle is the value left after subtracting those two from the sum. This works because with three numbers, the sum of all three minus the smallest and largest leaves the middle number.
For more than three numbers, this approach does not work. For example, with four numbers, subtracting the smallest and largest from the sum gives the sum of the two middle numbers, not a single middle value. To order four or more numbers, you would need a sorting algorithm or a different method.
Also, the calculator assumes you enter decimal numbers. If you enter a value that is not a number, the calculator may not work correctly.
Frequently Asked Questions
What does the calculator do?
It takes three decimal numbers and sorts them from smallest to largest. It shows the smallest, middle, and largest values, so you can see the ascending order directly. For example, with 3.14, 2.718, and 2.718, the result is 2.718, 2.718, 3.14.
Can I use it for negative numbers?
Yes, the calculator works for negative numbers as well. The min and max functions handle negative values correctly.
What if two numbers are equal?
If two numbers are equal, the calculator will show the same value in two positions. For example, with 3.14, 2.718, and 2.718, the smallest and middle are both 2.718, and the largest is 3.14. If all three are equal, all three results are the same.
Does the middle formula work for more than three numbers?
No, the middle formula works only for three numbers. For four or more numbers, subtracting the smallest and largest from the sum gives the sum of the middle numbers, not a single middle value. You would need a different sorting method for longer lists.
How do I read the table?
Each row shows the first decimal you entered, then the smallest, middle, and largest values in ascending order. For example, when the first decimal is 1.5 and the other two are 2.718, the order is 1.5, 2.718, 2.718. When the first decimal is 3.5, the order is 2.718, 2.718, 3.5.
Method
For each row, the three inputs are used to compute the smallest, middle, and largest using min and max functions. The middle is derived as the sum minus the smallest and largest.
Formula used
in num1 | First decimal | - | 3.14 | 0 in num2 | Second decimal | - | 2.718 | 0 in num3 | Third decimal | - | 2.718 | 0 out smallest | Smallest (ascending order) | - | min(num1,min(num2,num3)) | 6 out middle | Middle (ascending order) | - | num1+num2+num3-min(num1,min(num2,num3))-max(num1,max(num2,num3)) | 6 out largest | Largest (ascending order) | - | max(num1,max(num2,num3)) | 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.
- Spherical Cap Surface Area Calculator & Formula251.33 cm²
- Spherical Cap Surface Area: Formula & Calculator314.1593 in²
- Spherical Cap Formula: Volume & Surface Area Calculator117.2861 m³
- Spherical Cap Equation & Calculator435.6342 in³
- Spherical Cap Calculator: Volume & Surface Area435.6342 in³
- Spherical Cap Area Formula: Calculator & Guide15,707.96 mm²