Question

ZERO is NOT ZERO ?

Asked by: AnswerTheMan

21.8+23.98+2.5-10.5+0.2-6.72-5.1-10.8-12.6-2.76
is always ZERO. MUST BE.
BUT Microsoft Excel calculates that to be :
0.0000000000000035527136788005

has Microsoft created a new MATH ????

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2004-03-18 at 01:54:12ID20923082
Tags

excel

Topic

Microsoft Excel Spreadsheet Software

Participating Experts
5
Points
50
Comments
21

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Actionscript Math issue - not calculating to zero
    In my web app I have actionscript that is running a total - the total is giving an exponential instead of zero. Blank flash file add to frame 1 stop(); var t:Number; t=137.68; t=t-100; t=t-37.68; trace(t); The output expected is 0 - but I get 7.105427357601e-15? I've tried...
  2. ZEROS DROPPING
    I use a scanner to scan a barcode, sometimes this barcode has a zero at the beggining of the barcode, and sometimes a other than zero. The problem with the zero is that is not displayed on the cells, then this become a problem when I used this data to do other calculation, Is...
  3. Excel - Suppress Rows with Zero Values
    Microsoft Excel - Suppress Rows with Zero Values - I have a large quantity of data and some of the rows have all zeros - - I just want to be able to automatically hide the rows that have zero's in all the cells on that row but that will automatically unhide them if I change t...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: roos01Posted on 2004-03-18 at 02:29:55ID: 10622522

you could use the function:
'=ROUNDDOWN(NumberToRound,DecimalPlacesToUse)

regards,
jeroen

 

by: AnswerTheManPosted on 2004-03-18 at 03:00:54ID: 10622676

roos01 : tnx. i know what i can do. in fact i can do many other things, BUT i didn't ask what to do.
WHY ZERO is NOT ZERO ?????

 

by: roos01Posted on 2004-03-18 at 03:19:53ID: 10622779

Sorry,

I asume that youre values are the result of calculation within a the worksheet. If you put the number format to 2 and then using the values calculated in another formula then it won't leave the shown values as 2 digit values but calculates also with the hidden digits.

example:
A1: = 26.0 + 1.00000000001 and the format is set to 2 digits then the shown result will be: 27,00
B1: = 27,00

C1: = A1-B1

if C1 is not set in format: 2 digits then the value shown will be 0.00000000001
hopre this helps explainingregards,

jeroen

 

by: AnswerTheManPosted on 2004-03-18 at 03:48:59ID: 10622944

HEY....why complicate a simple thing ????
PUT the numbers in my Q in a 1 Cell, and make the cell format to 1 million digits OK ?
it is ZERO and it have to be ZERO point 1 millions ZEROS. why it' s not like that ?

 

by: JustinCase2Posted on 2004-03-18 at 03:52:15ID: 10622968

Hi AnswerTheMan,

I've seen this odd spreadsheet behavior as far back as Lotus123 for DOS. FWIW, I've never seen a clear explanation of why it occurs. And still haven't. This behavior can create troubling and hard to find problems in formulas and macros, so I appreciate you're frustration. (I've experienced them too!)

For example, using the values you cited and trying to compare them with another cell set to zero, i.e..

=YourCell = 0

..will return FALSE, clearly not the case.

Formatting is not the issue as far as I can tell, since the underlying values Excel is storing don't change, just their appearance. So, I'm just "chiming in" here; don't know the answer but would love to find out if there's an actual solution (there's plenty of workarounds.)

Consider me subscribed to this thread with you :)

Regards to all,
Justin

 

by: roos01Posted on 2004-03-18 at 04:05:36ID: 10623035

When putting youre numbers in 1 cell it returns next error: 3,55271E-15
when putting it in a cell like: =(21,8+23,98+2,5)-(10,5+0,2-6,72-5,1-10,8-12,6-2,76) this returns: 75,56
when putting it like: =(21,8+23,98+2,5)+(-10,5+0,2-6,72-5,1-10,8-12,6-2,76) then a zero is returned
when putting it like: =21,8+0,2+23,98+2,5+(-10,5-6,72-5,1-10,8-12,6-2,76) then a zero is returned

Note1: My delimter is , instead of .
Note2: changed 2,5)-(10,5 into 2,5)+(-10,5

I think it has to do with the order of encreasing and decreasing

If you put youre values into 1 cell (not the formulas) and you don't retrieve 0,0000-n I have no clue why you retrieving it that way. I couldn't reproduce it.

Jeroen

 

by: JustinCase2Posted on 2004-03-18 at 04:28:56ID: 10623158

Hi roos01,

Try putting AnswerTheMan's values in a consecutive range in a column, let's say column A. Place negatives where need be based on his post. SUM this column in row 11. Same result as the questioner's.

To illustrate, in the cell below the SUM function, try this formula, assuming it's in row 11 column A. Then, in cell A12..

=A11=0

..which will return FALSE. Wrong answer. Any ideas?

Regards,
Justin

 

by: AnswerTheManPosted on 2004-03-18 at 04:38:32ID: 10623211

roos01 :  you are missing the issue and your comments are not to the point AT ALL. if you can't understand what it's all about - please lay off this one. thanks.

 

by: roos01Posted on 2004-03-18 at 04:44:03ID: 10623241

this is a bit strange.

put all data in own cells but value = 3,55271E-15 using SUM(A11). (have excel 97 on NT here)

usiing next: =SUM(A1:A4)+SUM(A5:A10) returns 0. did check: =A11=0 this returns TRUE

Jeroen

 

by: JustinCase2Posted on 2004-03-18 at 04:57:43ID: 10623312

Strange indeed, Jeroen.

Just tried the same thing and you are correct. Sounds like this a question for MS. It's unfortunate that we can't be confident when using formulas. Makes our job a bit harder when we don't know if we've made a mistake or just encountered an MS bug.

Out of curiosity, what prompted you to split up the SUM ranges? I wouldn't have even considered that.

Best,
Justin

 

by: roos01Posted on 2004-03-18 at 05:20:17ID: 10623449

Ok AnswerTheMan,

I will lay off, just this remark. had same anwer: 3,55271E-15 is same value only different notation.

what I found out that it has to do in which order you subtract the negative number. If you first subtract the numbers with 1 digit and then 2 digits etc. then a clean zero will be returned.

the split up the sum ranges was just to make sure that there is no influence if there is no strange behaviour in the subtraction. Saw it before.

But I can add another one:

Put these values in A1: A10

21,8
0,6
23,98
2,5
-10,5
-5,1
-6,72
-2,8
-12,6
-10,8

this will return: 0,36 as result of the sum =SUM(A1:A10) although =SUM(E1:E4)+SUM(E5:E10) returns Zero.
Looking to this behaviour the answer on the question: "has Microsoft created a new MATH ????"  Yes, and AnswerTheMan found the proof.

 

by: JustinCase2Posted on 2004-03-18 at 05:31:29ID: 10623529

Thanks Jeroen!

Sounds like MS needs to get their (Edited by Computer101 :) together.

Kind of scary, seems like such simple spreadsheet situation. Go figure..

Sorry, AnswerTheMan, welcome to MS-World :))

Does anyone else have some ideas? I and Jeroen appear to be fresh out..

Regards to all,
Justin

 

by: SteinerPosted on 2004-03-18 at 05:43:52ID: 10623621

There is a similar bug about boolean-values, check it out at this page:

http://www.j-walk.com/ss/excel/odd/odd25.htm

 

by: roos01Posted on 2004-03-18 at 11:19:52ID: 10626711

Although I promised not to react anymore (I hope you forgive me AnswerTheMan) I found an site where the same issue is described. And on this site this behaviour is explained. Also is here the ability to donwload an excel workbook which contains more examples of this floating point issue.
Although it is in German

http://www.fhnon.de/mathe-lehramt/numerik/maschgen.htm  line 48

you might use the translate option of google.

the base of this article is: it is related to the floating point and The machine accuracy is the smallest number, whose addition is still noticed to 1 by the machine . And floating point representation after IEEE standard see

regards,

Jeroen

 

by: derekpapeschPosted on 2004-03-19 at 00:15:04ID: 10631200

This isn't a bug, rather it is a computer design issue.

A computer, cannot store most fractional numbers with total accuracy. Computers, in general, use the IEEE (Institute Of Electrical And Electronic Engineers) standard for floating point numbers. This standard provides a way to store fractional numbers in the limited space of an 8-byte number. For most numbers, some approximation must be made.

It's all beyond me but if you are interested you can read up on "IEEE Floating Point Standard".  It is not an Excel thing though, you have to be careful with floating point numbers in all programming languages.

Here are some links about it:
http://www.cpearson.com/excel/rounding.htm
http://en.wikipedia.org/wiki/IEEE_floating-point_standard

 

by: JustinCase2Posted on 2004-03-19 at 04:29:37ID: 10632367

Thanks derekpapesch! Finally, the clear explanation we were looking for (from the Pearson site). Can't say I'm happy with it, but at least I understand now. I'm not in the habit of shooting the messenger :)

Points to derekpapesch, AnswerTheMan, IMHO.

Thanks again,
Justin

 

by: AnswerTheManPosted on 2004-03-20 at 22:07:33ID: 10642999

well, i have nothing tto add but repaet Justin lines :
<<Finally, the clear explanation we were looking for (from the Pearson site). Can't say I'm happy with it, but at least I understand now>>

BUT - as for the points - i'd ratehr give them to roos01 who came FIRST with the IEEE issue.
more then that - after he did'nt understood the Q at all at the begining - he made a fine comeback with the right answer, and i appriciate that.
Thanks all.

 

by: roos01Posted on 2004-03-21 at 10:04:15ID: 10644616

Thanks for the grade!
At the end (when understanding the question)  I found it myself amazing that such behaviour exist. Especialy Im normaly not looking in such a direction for answers. Learned something new. Thanks,

Jeroen

 

by: Thomas_E_FoxPosted on 2004-09-19 at 19:36:09ID: 12098838

Hi

You will note the same phenomenon after fill-dragging down from cells A1 and A2, containing values 1.1 & 1.2 respectively. With the increment of 0.1 added each row down, cell A38 should equal 4.8. No. It shows 4.79999999999999. And so forth down, the effect sometimes disappearing and then reappearing. It has frustrated us much.

Yumatom

 

by: derekpapeschPosted on 2004-09-20 at 17:11:36ID: 12107741

can't you just format the cells to show only 1 decimal place?  That would give you 4.8 every time.

 

by: Thomas_E_FoxPosted on 2004-09-21 at 09:24:17ID: 12113894

Correct. I should have said “formula bar”. The cell will read 4.8 in either a general format or fixed at one place. But the formula bar will display the true number, 4.79999999999999, in both instances. ROUND can be used, but it’s easier to correct by hand. We’ll have to live with it, I guess.

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...