Thursday, November 12, 2026

9.11 vs 9.9: Which Is Bigger, and Why Do LLMs Get It Wrong?

Ask a chatbot “Which is bigger, 9.11 or 9.9?” and some models, especially older ones, will answer with confidence that 9.11 is bigger. They may even explain why, pointing out that 11 is larger than 9. A child who has learned decimals would get it right.

9.9 is bigger than 9.11. Written to the same number of decimal places, the comparison is 9.90 against 9.11, and 90 hundredths is more than 11 hundredths. The difference is 0.79. Language models get this wrong for reasons that say a lot about how they work: they read text as tokens rather than digits, and they have seen “9.11” come after “9.9” countless times in version numbers, dates and section headings. This article shows the correct math, explains each cause with a real tokenizer example, and covers how to get reliable answers to questions like this.

Key Takeaways

  • As decimal numbers, 9.9 is greater than 9.11. Compare the tenths digit: 9 tenths beats 1 tenth.
  • Many tokenizers split “9.11” into “9”, “.” and “11”, so the model sees a chunk “11” next to a chunk “9”, not a decimal place value.
  • In software versions, dates and section numbers, 9.11 does come after 9.9. Models learn from all of that text.
  • Newer models with a reasoning mode usually get this right because they work through the comparison before answering.
  • For any number that matters, have the model write and run code or use a calculator tool instead of comparing in its head.

Which Is Bigger, 9.11 or 9.9?

9.9 is bigger. Here is the comparison step by step:

  1. Compare the whole-number parts. Both are 9, so look at the decimals.
  2. Line up the decimal places. Add a trailing zero so both have two places: 9.90 and 9.11. A trailing zero after the decimal point does not change a number’s value.
  3. Compare from left to right. In the tenths place, 9.90 has a 9 and 9.11 has a 1. Since 9 is greater than 1, 9.90 is greater, and you can stop there.

Put another way, 9.9 is 9 and 90 hundredths, while 9.11 is 9 and 11 hundredths. On a number line, 9.11 sits just past 9, and 9.9 sits close to 10. Subtracting confirms it: 9.9 minus 9.11 is 0.79.

You can check this in Python. The decimal module compares exact decimal values:

from decimal import Decimal

from packaging.version import Version

# As decimal numbers
print(Decimal("9.11") > Decimal("9.9"))   # False
print(Decimal("9.9") - Decimal("9.11"))   # 0.79

# As software versions
print(Version("9.11") > Version("9.9"))   # True

Output:

False
0.79
True

The last line is the clue to the whole puzzle. Read as a software version, 9.11 really is greater than 9.9. The same characters have two correct answers depending on what they mean.

Why LLMs Say 9.11 Is Bigger Than 9.9

Reason 1: The Model Reads Tokens, Not Digits

A large language model does not see characters. A tokenizer first splits the text into tokens, chunks that may be a word, part of a word or a group of digits, and the model works with those. You can see the split with tiktoken, OpenAI’s open-source tokenizer library. This example uses r50k_base, the tokenizer of GPT-2 and the original GPT-3:

import tiktoken

enc = tiktoken.get_encoding("r50k_base")  # the GPT-2 / original GPT-3 tokenizer

for text in ["9.11", "9.9", "Is 9.11 bigger than 9.9?"]:
    ids = enc.encode(text)
    print(f"{text!r:28} -> {[enc.decode([i]) for i in ids]}")

Output:

'9.11'                       -> ['9', '.', '11']
'9.9'                        -> ['9', '.', '9']
'Is 9.11 bigger than 9.9?'   -> ['Is', ' 9', '.', '11', ' bigger', ' than', ' 9', '.', '9', '?']

To this tokenizer, “11” is a single token, just like “9”. Nothing in the input marks that the 1 in “11” is in the tenths place and the second 1 in the hundredths place. If the model compares the chunks after the decimal point the way it compares whole numbers, 11 beats 9, and it lands on the wrong answer.

Newer tokenizers split numbers differently, and many models have seen far more math during training, so this is not the whole story. But research shows tokenization does affect arithmetic. In Tokenization Counts (2024), Aaditya Singh and DJ Strouse found that GPT-3.5 and GPT-4 were much more accurate at addition when numbers were tokenized from right to left, by adding commas, than with the default left-to-right split.

Reason 2: In Much of the Training Text, 9.11 Comes After 9.9

Models learn from huge amounts of text, and a lot of that text uses dotted numbers that are not decimals:

  • Software versions. Python 3.11 is newer than Python 3.9. Release notes, changelogs and install guides repeat this pattern constantly.
  • Dates. In month and day formats, 9.11 or 9/11 is September 11, which comes after September 9.
  • Section and chapter numbers. In a manual or a legal document, section 9.11 comes after section 9.9.

In all of these, “9.11 is greater than 9.9” is the right reading. The model has seen that pattern far more often than a textbook comparison of the decimals 9.11 and 9.9, and without other context it can fall back on the more familiar meaning.

Reason 3: The Model Answers Before It Calculates

A standard model writes its answer one token at a time. If the first word it writes is “9.11”, every word after it is written to support that answer, including a confident but wrong explanation. It never stopped to line up the decimal places. A person who answers too fast makes the same kind of error, and the fix is the same: work it out before committing.

Do Newer AI Models Still Get 9.11 vs 9.9 Wrong?

Newer models, and especially reasoning models that think through a problem before answering, usually get this comparison right. Instead of answering at once, they tend to break the problem down, for example by rewriting 9.9 as 9.90 and comparing digit by digit, which avoids all three traps above.

“Usually” is the honest word. Results can still vary with phrasing, context and the specific model. A question framed around software, such as “Is version 9.11 bigger than 9.9?”, has a different correct answer, and a model has to notice which meaning you intend.

How to Get Reliable Answers to Number Questions

  • Say what the numbers are. “Compare these as decimal numbers” or “these are software version numbers” removes the ambiguity. Our prompt engineering guide covers this kind of context in more detail.
  • Ask for the steps. “Write both numbers to the same number of decimal places, then compare them” makes the model do the work a person would do.
  • Use a reasoning mode for anything with several steps. If your model has one, turn it on for math and comparisons.
  • Use code for numbers that matter. In an application, let the model write or call code that does the comparison, as in the Decimal example above. A tool gives the same exact answer every time.

What 9.11 vs 9.9 Teaches About LLMs

The 9.11 mistake points to something larger. A language model predicts likely text. It does not run arithmetic unless it is given a way to, and what it sees is shaped by its tokenizer. The same tokenizer that splits “9.11” into chunks also explains why models miscount letters in a word and why token counts matter for cost; our guide to how LLM tokens work and how to use fewer of them shows more examples. If you want to understand these mechanics from the ground up, our study guide for learning large language models lays out a path.

Back to the Chatbot

The chatbot from the opening was not bad at math so much as answering a different question than you asked. It saw “9”, “.”, “11” and a lifetime of version numbers and dates, and gave the answer that fits those. Ask it to treat the values as decimals and line up the places, or let it reason first, and you get the answer a calculator gives: 9.9 is bigger, by 0.79.

Frequently Asked Questions

Is 9.11 Bigger Than 9.9?

No. As decimal numbers, 9.9 is bigger. Written as 9.90 and 9.11, the tenths digit is 9 in the first and 1 in the second, so 9.9 is greater by 0.79.

Is Version 9.11 Higher Than Version 9.9?

Yes. Software versions compare each part as a separate whole number, so 9.11 means major version 9, minor version 11, which comes after minor version 9. That is a different rule from decimal numbers, and it is one reason language models mix the two up.

Why Do LLMs Struggle With Simple Math?

They predict text token by token instead of calculating, and their tokenizers often split numbers into chunks that hide place value. They also learn from text where dotted numbers mean versions or dates. Reasoning modes and calculator or code tools fix most of these errors.

How Do I Make a Chatbot Compare Decimals Correctly?

Tell it the values are decimal numbers and ask it to write them to the same number of decimal places before comparing. If the model has a reasoning or thinking mode, use it. For anything important, ask it to compute the answer with code.

Disclaimer: The content on this website reflects the views of contributing authors and not necessarily those of Generative AI Lab. This site may contain sponsored content, affiliate links, and material created with generative AI. Thank you for your support.

Generative AI Lab mascot
Generative AI Lab Editorial Team
Articles researched, written and edited by the Generative AI Lab team. About Generative AI Lab

Must read

- Advertisement -spot_img

More articles

- Advertisement -spot_img

Latest articles

Available for Amazon Prime