Understanding the least to greatest calculator — concept and principle
This calculator sorts a list of numbers, including fractions, decimals and negatives, from least to greatest and from greatest to least. It keeps each number in the form you typed and also reports the smallest and largest values, the range, the median, the sum and how many distinct values there are. Use it for number-sense practice, homework and quick data checks.
How it is calculated
- Every number is placed by its value on the number line; fractions are compared by their decimal value.
- Equal values keep their original order, and duplicates are kept.
- Range = largest − smallest.
- Median = middle value of the sorted list, or the average of the two middle values for an even count.
The principle
Ordering real numbers means reading them off the number line from left to right. Negative numbers come first, with those farther from zero being smaller: −2 < −0.75. Converting fractions to decimals puts everything on the same footing: 2/3 ≈ 0.667 comes before 3/4 = 0.75. Once sorted, simple summaries such as the median and range can be read straight off the list.
Worked example
Default input: 3/4, −2, 0.5, 7, 1.25, −0.75, 7, 2/3 (8 numbers).
- Least to greatest: −2, −0.75, 0.5, 2/3, 3/4, 1.25, 7, 7.
- Greatest to least: 7, 7, 1.25, 3/4, 2/3, 0.5, −0.75, −2.
- Smallest −2, largest 7, range = 7 − (−2) = 9.
- Median = (2/3 + 3/4) ÷ 2 = (0.6667 + 0.75) ÷ 2 = 0.7083333333.
- Sum = 14.41666667; distinct values 7 (7 appears twice).
How to read the result
The sorted list makes gaps and clusters visible: here most numbers lie between −1 and 1.25, with 7 well apart. The median, about 0.71, is a better "typical value" than the mean (14.42 ÷ 8 ≈ 1.80) because the two 7s pull the mean up.
Common mistakes
- Putting −2 after −0.75 because 2 is bigger than 0.75.
- Comparing fractions by their denominators.
- Dropping duplicate values, which changes the median.
- Sorting text instead of values in a spreadsheet, which puts 10 before 9.
Frequently asked questions
How do you order fractions and decimals together?
Convert all of them to decimals (or a common denominator) and compare.
Which is smaller, −2 or −0.75?
−2, because it is farther left on the number line.
What is the median of an even number of values?
The average of the two middle values in the sorted list.
Sources: Ordering of real numbers on the number line; median and range (standard definitions)