Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

On my calculator, I usually get a $0$ when I divide something by $2$, a lot of times if that makes sense, but I was just wondering why does $2^{-329} = 0?$

share|cite|improve this question
It doesn't. Calculators round. – anon Oct 5 '13 at 8:15
Consider that if $2^{-329}$ was zero, then $2^{-329} \times 2 = 2^{-328}$ would have to be zero too. And by the same logic $2^{-327}, 2^{-326}, \cdots 2^{0}$ would have to be as well. But $2^0 = 1$, contradiction. – Thomas Oct 5 '13 at 13:41
About $9.14\times10^{-100}$, I think maybe it's because the exponent field display of a typical LCD calculator can only show down to $-99$? – Alvin Wong Oct 5 '13 at 15:20
I'm amazed that NOT ONE of the six answers so far has used the word "round". Students often think calculators give EXACT answers whereas things done by hand are rounded. That's the opposite of the truth. All the confusion about arithmetic that's out there will persist until simple things are taught, one of which is that CALCULATORS ROUND. +1 to "anon"'s comment. – Michael Hardy Oct 5 '13 at 21:56
@wendy.krieger Yes, but in some strict sense, rounding is the process by which the closest representable number is selected; so underflow is rounding to 0, but not in the usual way when mantissa needs to be truncated. – Kirill Oct 6 '13 at 0:32
up vote 49 down vote accepted

The precise name for the feature is underflow, which means it's less than the smallest number the registers can hold. It's kind of like overflow.

share|cite|improve this answer
I really love the fact that this uses the word, "feature" – Sabyasachi Mar 27 '14 at 16:39

It doesn't. Your calculator can't handle a number of such a small magnitude. Specifically, $2^{-329}\approx 9.14\times 10^{-100}$, and I'm guessing that your calculator can only handle numbers of magnitude between $10^{-99}$ and $10^{99}$.

share|cite|improve this answer
In contrast, IEEE double precision can represent the answer correctly (and exactly). – Dan Oct 5 '13 at 14:51
@Dan, that's true, the smallest number it can represent exactly is 2^−1074 – trav1s Oct 7 '13 at 6:28

Your calculator gives you $0$ for $2^{-329}$ for the same reason that it gives you $0$ when you divide by $2$ a lot: Because $2^{-329}$ is dividing by $2$ a lot. More precisely,

$$2^{-329}=\dfrac{1}{2^{329}}=\dfrac{1}{\text{huge number}}=\text{number so small your calculator doesn't know it from }0.$$

Note that $2^{-329}$ is what you get if you start with $1$ and divide by $2$ repeatedly, a total of $329$ times.

share|cite|improve this answer

The calculator doesn't have enough precision to store the number which is so small that the closest number it can represent is 0.

Similarly, the same thing happens when you try repeatedly square rooting a number on your calculator.

I.e. pick any positive number $n$ and evaluate $\sqrt{\sqrt{\sqrt{...\sqrt{\sqrt{n}}}}}$. You'll find the calculator eventually returns $1.0$ when you do it enough times.

share|cite|improve this answer

You know from your algebra course (hopefully) that $2^x \neq 0$ for any $x$, so this has something to do with calculator doing something in appropriate. You were probably expecting something in scientific notation: $$ 2^{-329} = a \cdot 10^b $$ for some $1 \leq a < 10$ and an integer $b$ (so that neither the right hand side nor the left hand side are zeroes, of course). Can you still compute this on your calculator? In your algebra class, you should have learned a trick to make insanely big (or insanely small, like this one) numbers manageable. Let's put this trick to action: $$ b + \log_{10} a = \log_{10} 2^{-329} = -329 \log_{10} 2 = -329 \cdot 0.30103 = -99.038869 $$ If $1 \leq a < 10$, then $0 \leq \log_{10} a < 1$. So $b$ is the integer floor part of the answer, and $\log_{10} a$ is the fractional part: $$ b = -100; \log_{10} a = 1 - 0.038869 = 0.961131; a = 10^{0.0.961131} = 9.14389 $$ Thus, $$ 2^{-329} = 9.14389 \cdot 10^{-100} $$ as of course pointed out by everybody else in this thread.

Calculator is your (powerful) tool, but you still need to be smart in using that tool.

share|cite|improve this answer
+1, even though probably useless to the person who asked. – Carsten S Oct 6 '13 at 10:48

Because, the calculator has a limit, and the input of yours crosses that limit. Your calculator calculates the value for the positive index first and then inverses it. Hence, it's underflowing its register values.

share|cite|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.