Useful!: No More "e+", Wolfram|Alpha Gives Me All The Digits!

Share

While making a list of the total number of possible unique values per bit length, I had a problem: most online calculators will omit digits when you have too many digits in the result of the calculation!

For example, if you ask Google what is "2 to the power of 64" or 2^64(How to Read Math), the answer is going to be 1.8446744e+19. As we both know from grade school, that isn't a number. Numbers don't have e's in them. What is this?

This is a scientific notation. It means the actual number is what comes before e+ times 10 to the power of what comes after e+.

In other words, 1.8446744*10^19. That's right, scientists are so smart that they're going to make everyone confused just to save typing 2 characters!

This notation is of course worthless because I want the calculator to tell me the whole number. There is no way the answer is 18446744000000000000 with that many zeroes. The calculator is omitting the rest, the most insignificant digits. Just because a digit is the least significant that doesn't mean it's completely insignificant. In this case, it significates a lot to me.

Some online calculators that I found through Google also did the same thing, so for a while I thought that this was impossible. In hindsight, I could have just typed 2**64 in Python, but then I'd have to copy the result off the terminal, or use some piping to get the result. There has to be better a way.

Thankfully, Wolfram|Alpha solves the problem. I can just ask it what is 2^64, and it actually shows all the digits. You can see for yourself:

It also worked with 2^4096, although I had to keep clicking "more digits" like a maniac a few times until it gave me all the digits. But it did give me all the digits.

Wolfram Alpha calculating 2^4096, showing the answer: 1044388881413152506691752710716624382579964249047383780384233483283953907971557456848826811934997558340890106714439262837987573438185793607263236087851365277945956976543709998340361590134383718314428070011855946226376318839397712745672334684344586617496807908705803704071284048740118609114467977783598029006686938976881787785946905630190260940599579453432823469303026696443059025015972399867714215541693835559885291486318237914434496734087811872639496475100189041349008417061675093668333850551032972088269550769983616369411933015213796825837188091833656751221318492846368125550225998300412344784862595674492194617023806505913245610825731835380087608622102834270197698202313169017678006675195485079921636419370285375124784014907159135459982790513399611551794271106831134090584272884279791554849782954323534517065223269061394905987693002122963395687782878948440616007412945674919823050571642377154816321380631045902916136926708342856440730447899971901781465763473223850267253059899795996090799469201774624817718449867455659250178329070473119433165550807568221846571746373296884912819520317457002440926616910874148385078411929804522981857338977648103126085903001302413467189726673216491511131602920781738033436090243804708340403154190336.
WolframAlpha showing the result of 2 to the power of 4096.

Comments

Leave a Reply

Leave your thoughts! Required fields are marked *