Lelifi·tools

Least to Greatest Calculator

The calculator sorts fractions, decimals and negatives into ascending order. For 3/8, 0.42, 5/12 and -1.2 it returns -1.2, 3/8, 5/12, 0.42: 3/8 = 0.375 and 5/12 = 0.4167 rounded, so both sit below 0.42, and the range spans 1.62.

Type two or more numbers, separated by commas. Fractions like 3/8, mixed numbers like 1 5/8, decimals like 0.42 and negatives like -1.2 can share one list.

Type fractions, decimals or negative numbers, separated by commas, and get the ascending order, the decimal view of each entry, the least and greatest values and the range.

By the Lelifi editors ·

Key takeaways

Four entries on one scale: -1.2 sits alone, three positives crowd together-2-101-1.23/8 = 0.3755/12 = 0.41670.42The three positive entries land within a few pixels: place values, not eyeballing, split 3/8, 5/12 and 0.42.
The three positive entries land within a few pixels, so place values rather than eyeballing split 3/8, 5/12 and 0.42.
One pass from a mixed list to a sorted rowType the mixedlist, commas apartConvert each entryto one shared formCompare signs, thenplace by placeRead leastto greatestConvert once, compare once, and the sorted row falls out with ties marked.
The pipeline: a shared form, a place value comparison, then the sorted row with ties marked.
On this page
  1. What least to greatest means, and when a set needs it
  2. Three ways to compare entries that wear different forms
  3. Worked example: 3/8, 0.42, 5/12 and -1.2
  4. Mixed numbers and an exact tie: 7/4, 1 5/8, -2.25, 1.625, 3/2
  5. Cross multiplication: ranking fractions without dividing
  6. Rounding rules that keep an order honest
  7. What sorting unlocks: median, range and readable rows

What least to greatest means, and when a set needs it

Least to greatest describes the ascending order of a set of numbers: the smallest value first, the largest last, and every other member seated between its two neighbors. On a number line the sorted values run left to right, because the real line, as Wolfram MathWorld's classroom notes define it (accessed 2026), carries a fixed scale on which every real number corresponds to a unique point. Sorting answers questions a jumbled list cannot: which entry wins, which loses, and how far apart the two extremes sit.

The phrase describes an action, not a single comparison. A worksheet that says order the numbers from least to greatest wants the whole set rearranged, and Khan Academy drills the skill as ordering decimals (2024): compare the largest place value first, and only move right when the digits tie. That habit scales from clean decimals to the mixed lists this page handles.

Mixed lists are the hard case and the reason the calculator exists. A homework line like 3/8, 0.42, 5/12 and -1.2 stacks a fraction, a decimal, a second fraction and a negative, so no single rule of thumb finishes the job. Converting every entry to one shared form, then comparing place by place, settles the whole set in a single pass.

Three ways to compare entries that wear different forms

Three methods cover the field. The common denominator route rewrites every fraction over one shared bottom and compares numerators, which is the classical classroom move. The decimal route divides each top by its bottom and compares place by place, which is the move this page automates. The benchmark route parks each entry against 0, 1/2 and 1, which is too coarse to finish a close race but catches wild mistakes fast.

MethodHow it worksGood forWatch out for
Common denominatorone shared bottom, then compare topstwo or three fractions with small bottomsbottoms like 12 and 16 inflate to 48 before anything is decided
Decimal conversiontop divided by bottom, compared place by placemixed lists with fractions, decimals and negativesrepeating digits: 2/3 becomes 0.6667 rounded, never exact
Benchmarkspark each entry against 0, 1/2 and 1fast estimates and sanity checksclose pairs like 0.4167 against 0.42 share a band, so benchmarks cannot split them

Decimal conversion is the workhorse here because one move handles every entry type. The fraction route wins when the whole list is fractions with small bottoms, and the benchmark route works as a guardrail: it instantly flags ranking -1.2 above 0.42, but it cannot decide which of two close positives comes first.

Worked example: 3/8, 0.42, 5/12 and -1.2

Step one converts the fractions: 3/8 = 0.375 exactly, and 5/12 = 0.4167 with the fourth place rounded, because the true decimal repeats a 6 forever. The other two entries arrive as decimals, so the working set reads -1.2, 0.375, 0.4167 and 0.42.

Step two pulls the negative to the front, since every positive number beats it: -1.2 is least. Step three compares the positives at the tenths place: 0.375 carries 3 tenths while 0.4167 and 0.42 both carry 4, so 3/8 takes second spot. Step four splits the two survivors at the hundredths place: 0.4167 holds 1 hundredth against 2 hundredths for 0.42, so 5/12 lands third and 0.42 stands as greatest. The finished order reads -1.2, 3/8, 5/12, 0.42.

One cross multiplication confirms the close pair without any rounding: write 0.42 as the fraction 21/50 = 0.42, then compare 5/12 against 21/50. The products run 5 x 50 = 250 and 21 x 12 = 252, and since 250 < 252, 5/12 < 0.42, matching the rounded decimal view.

EntryAs a decimalRankWhy
-1.2-1.21stthe only negative
3/80.3752nd3 tenths, smallest of the positives
5/120.41673rd4 tenths, 1 hundredth
0.420.424th4 tenths, 2 hundredths

The extremes also fix the spread: 0.42 - (-1.2) = 1.62, the range the widget reports under the sorted row.

Mixed numbers and an exact tie: 7/4, 1 5/8, -2.25, 1.625, 3/2

Mixed numbers join the list through one conversion: 1 5/8 reads as 1 + 5/8 = 1.625, a single value over eighths. That lands it level with the decimal 1.625 already typed into the set, and equal values keep the order they were typed in, so 1 5/8 shows up before 1.625 in the sorted row.

The rest convert on sight: 7/4 = 1.75 and 3/2 = 1.5, while -2.25 keeps its form. Ascending, the set reads -2.25, 3/2, 1 5/8, 1.625, 7/4. The extremes give the range: 1.75 - (-2.25) = 4, a clean whole number even though the list mixes five notations.

EntryAs a decimalPositionNote
-2.25-2.251stleast
3/21.52ndplain fraction
1 5/81.6253rdtie, typed first
1.6251.6254thtie, typed second
7/41.755thgreatest

A tie is information, not trouble. The calculator notes it, and a hand worker should too: two entries with the same value mean the list carries a duplicate, and any report that sums or averages the set will count that value twice.

Cross multiplication: ranking fractions without dividing

Fractions rank cleanly with no division at all. For a/b against c/d with positive bottoms, compare a x d with c x b: both products lift the pair onto the shared bottom b x d, so the bigger product marks the bigger fraction. For 5/12 against 21/50 the products are 250 and 252, so 5/12 is the smaller fraction.

The same move settles entries a short decimal view would blur: 2/3 against 0.667 reads 0.667 as 667/1000, and then 2 x 1000 = 2000 stands against 667 x 3 = 2001. One unit of product decides it, so 2/3 falls short of 0.667, and a calculator that truncated to three places would have called the pair equal.

Ties show up as equal products: -3/4 against -0.75 gives -3 x 100 = -300 and -75 x 4 = -300, so the entries are the same number written twice. Signs need care once negatives enter, because the comparison direction flips; that is the trap this page sidesteps by converting everything to values first and comparing values, never raw products with mixed signs.

PairProducts to compareVerdict
5/12 vs 21/50250 and 2525/12 smaller
2/3 vs 667/10002000 and 20012/3 smaller
-3/4 vs -75/100-300 and -300exact tie
7/8 vs 35/40280 and 280exact tie

Rounding rules that keep an order honest

Rounding sits next to sorting, because a rounded copy of an entry can swap places with a neighbor. NIST SP 811, the 2008 guide for using SI units, states the base rule in Appendix B, section B.7.1 (NIST, 2008): discard digits from the right, and when the discarded part begins with a 5 followed by nothing but zeros, leave the preceding digit alone if it is even and raise it if it is odd. Their worked example rounds 6.974 950 5 to seven digits as 6.974 950. Applied to 0.345 at two places, the rule returns 0.34, not 0.35.

The deeper point is about order of operations. NIST's unit conversion guidance (SP 1038, 2006) says not to round any quantity used inside a calculation and to round only the final result. Sorting is a calculation, so the working list keeps full values: 5/12 rides through the comparison with its repeating tail, even though the display shows 0.4167. The gap that matters, between 5/12 and 0.42, is about 0.0033, and it survives only if nobody rounds early.

Practical rule: sort first, round last. A teacher asking for two place answers wants the sorted set reported at two places, not a sort performed on numbers that were already truncated.

What sorting unlocks: median, range and readable rows

Once a set stands in ascending order, statistics fall out with no extra work. The median of an even sized set is the average of the middle pair: for -1.2, 0.375, 5/12 and 0.42 the middle pair is 3/8 and 5/12, which add to 19/24 = 0.7917, and half of that, 19/48 = 0.3958, is the median.

The range is the greatest entry minus the least: 0.42 - (-1.2) = 1.62 for the four entry set and 4 for the five entry set with the tie. The widget reports both figures beside the sorted row, so the order arrives with its spread attached.

Sorted rows also read better everywhere else. Schedules, test scores, price lists and lab measurements all scan faster when values climb, and tables that feed reports want a stable order rather than the order of entry. The rounding calculator handles the last mile when an answer must land on fixed places, and the mean median mode range calculator picks up where sorting stops, turning an ordered list into the summary numbers that describe it.

Frequently asked questions

How does the calculator handle a list that mixes fractions and decimals?

It converts every entry to an exact fraction of integers, sorts those values, and reports the original forms in the sorted row. The decimal row shows each entry rounded to four places, so 3/8 shows as 0.375 and 5/12 as 0.4167, while the comparison itself uses full values.

What is the order of 3/8, 0.42, 5/12 and -1.2?

Least to greatest: -1.2, 3/8, 5/12, 0.42. The close call is 5/12 against 0.42: cross multiplication gives 5 x 50 = 250 against 21 x 12 = 252, so 5/12 falls short.

How do mixed numbers like 1 5/8 get sorted?

As a single value: 1 5/8 = 1.625. In the set 7/4, 1 5/8, -2.25, 1.625 and 3/2 it ties the decimal 1.625 exactly, and the two twins keep the order they were typed in.

What happens when two entries are equal?

They tie, and the sort is stable: equal values stay in entry order. The set 7/4, 1 5/8, -2.25, 1.625, 3/2 sorts to -2.25, 3/2, 1 5/8, 1.625, 7/4, with a tie note for the middle pair.

Is 5/12 bigger or smaller than 0.42?

Smaller. As decimals, 5/12 is 0.4167 rounded while 0.42 is 0.4200, so the hundredths digits, 1 against 2, decide. Cross multiplication agrees: 250 against 252.

Can I include negative numbers?

Yes. Negatives sort before every positive: in the set 3/8, 0.42, 5/12 and -1.2 the value -1.2 is least, and the range runs 0.42 - (-1.2) = 1.62.

How many numbers can I sort at once?

Two or more, up to the size of the box. Comparisons stay exact while numerators and denominators stay at or under 10,000,000 after reduction, which covers a class list of 30 scores with fractions mixed in.

Does the tool round before it sorts?

No. NIST rounding guidance (SP 1038, 2006) says to round only the final result, so the sort runs on full values and the decimal row is rounded for display. Sorting rounded copies can swap close neighbors like 5/12 and 0.42.

What is the range of 7/4, 1 5/8, -2.25, 1.625 and 3/2?

4. The greatest entry is 7/4 = 1.75, the least is -2.25, and 1.75 - (-2.25) = 4.

How do I rank fractions without converting to decimals?

Cross multiply. For a/b against c/d, compare a x d with c x b. For 2/3 against 0.667, read 0.667 as 667/1000: 2 x 1000 = 2000 and 667 x 3 = 2001, so 2/3 is smaller.

What does ascending order mean on a number line?

Left to right. The real line carries a scale on which every real number marks exactly one point, so the least value sits leftmost and the greatest sits rightmost.

Is 0.09 less than 0.1?

Yes. Tenths decide before hundredths: 0.09 carries 0 tenths and 0.1 carries 1, so the set 0.1, 0.09, 0.101 sorts to 0.09, 0.1, 0.101.

Why does 0.345 round to 0.34 and not 0.35?

NIST SP 811 (2008) uses round half to even: when the discarded part is a 5 followed by zeros, an even digit before it stays put. The 4 in 0.345 is even, so two place rounding gives 0.34.

Where does least to greatest show up outside class?

Price comparison, race results, lab readings and budget lines all start by ranking values. Sorting is also step one for a median, which is the average of the middle pair in an even sized set.

Spotted a wrong number or a broken result?

More Everyday tools

See all Everyday tools

Fee schedules, rates and rules change without notice. Always confirm important figures with the official source before you rely on them.