Register to reply

Excel + Calculations

by StevieTNZ
Tags: calculations, excel
Share this thread:
StevieTNZ
#1
Oct22-13, 12:45 PM
PF Gold
StevieTNZ's Avatar
P: 795
Hi there,

If I perform the following calculation in Excel:
=100,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,00 0,000,000,000,000,000,000,000,000+50

I get: 100,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000 ,000,000,000,000,000,000,000,000

Shouldn't the answer be:
100,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000 ,000,000,000,000,000,000,000,050?
Phys.Org News Partner Science news on Phys.org
Hoverbike drone project for air transport takes off
Earlier Stone Age artifacts found in Northern Cape of South Africa
Study reveals new characteristics of complex oxide surfaces
phinds
#2
Oct22-13, 02:41 PM
PF Gold
phinds's Avatar
P: 6,083
No, the answer will be constrained by the number of bits used by the computer to represent the numbers, and you've got WAY more than it can handle, so the 50 gets dropped as a rounding error.
jtbell
#3
Oct22-13, 02:59 PM
Mentor
jtbell's Avatar
P: 11,602
According to

http://en.wikipedia.org/wiki/Numeric...icrosoft_Excel

numbers in Excel are limited to 15 significant figures. So 100,000,000,000,000+50 works, but 100,000,000,000,000,000+50 doesn't.

StevieTNZ
#4
Oct22-13, 03:55 PM
PF Gold
StevieTNZ's Avatar
P: 795
Excel + Calculations

Is there any other program out there that will present the result given in my original post?
Bill Simpson
#5
Oct24-13, 03:57 PM
P: 1,028
Lots of other programs can do that.
Computer Algebra Systems, like Mathematica, Sage, Maxima, Reduce, Maple... all do that.
http://en.wikipedia.org/wiki/Computer_algebra_system

Some calculator programs, like bc and many others do that.
https://www.google.com/search?q=big+...ger+calculator

Many programming languages, like Icon, Java... do that, don't be fooled by those who think 64 bits is big.
https://www.google.com/search?q=prog...ge+big+integer
Chronos
#6
Oct30-13, 02:11 AM
Sci Advisor
PF Gold
Chronos's Avatar
P: 9,360
64 bits is chump change for deep calculations. You need a monster computer to process calculations beyond a few hundred decimal points. That is why numerical analysis takes so long and is so incredibly expensive.
harborsparrow
#7
Oct30-13, 11:24 AM
PF Gold
harborsparrow's Avatar
P: 347
Just for grins, try putting the smaller number first.
phinds
#8
Oct30-13, 03:00 PM
PF Gold
phinds's Avatar
P: 6,083
Quote Quote by harborsparrow View Post
Just for grins, try putting the smaller number first.
Do you really think that's going to have any effect on the fact that the larger number is WAY bigger than Excel can handle as an integer?
harborsparrow
#9
Oct31-13, 01:05 AM
PF Gold
harborsparrow's Avatar
P: 347
Quote Quote by phinds View Post
Do you really think that's going to have any effect on the fact that the larger number is WAY bigger than Excel can handle as an integer?
Sometimes it does help to prevent loss of precision by putting the smaller number first, when there is a huge range of magnitude difference between two operands.
phinds
#10
Oct31-13, 08:10 AM
PF Gold
phinds's Avatar
P: 6,083
Quote Quote by harborsparrow View Post
Sometimes it does help to prevent loss of precision by putting the smaller number first, when there is a huge range of magnitude difference between two operands.
Yes, and that does not answer my question at all. I am asking about a specific case.


Register to reply

Related Discussions
Calculating a and b in excel (any excel masters)? Introductory Physics Homework 4
Excel Bug? Math & Science Software 2
Need Testing and Feedback on Excel Coil Calculations Sheet (Part 2) Electrical Engineering 0
Need Testing and Feedback on Excel Coil Calculations Sheet Electrical Engineering 0
Generate a function on excel Computing & Technology 3