f13.net

f13.net General Forums => General Discussion => Topic started by: Trippy on September 24, 2007, 09:25:39 PM



Title: Math is hard - serious bug in Excel 2007
Post by: Trippy on September 24, 2007, 09:25:39 PM
Just in case some of you are using Excel 2007: Bug in Excel 2007 (http://groups.google.com/group/microsoft.public.excel/browse_thread/thread/2bcad1a1a4861879/2f8806d5400dfe22?hl=en#2f8806d5400dfe22)

Basically some calculations that should come out to 65535 are showing as 100000.

Edit: fix:

http://blogs.msdn.com/excel/archive/2007/10/09/calculation-issue-update-fix-available.aspx


Title: Re: Math is hard - serious bug in Excel 2007
Post by: Venkman on September 26, 2007, 06:44:38 AM
Jesus. I just tried that on three earlier versions of Excel I have and it calculates fine. How do you mess something like that up?! It's almost like they had to try...


Title: Re: Math is hard - serious bug in Excel 2007
Post by: Roac on September 26, 2007, 07:51:50 AM
Jesus. I just tried that on three earlier versions of Excel I have and it calculates fine. How do you mess something like that up?! It's almost like they had to try...

Because of the binary representation.  2^16=65536, and 2^20 is 100,000 in hex.  2^16 is also two bytes.  Somewhere something broke, had an overflow, whatever.


Title: Re: Math is hard - serious bug in Excel 2007
Post by: Xanthippe on September 26, 2007, 10:07:06 AM
Computer Science 101 ftw.


Title: Re: Math is hard - serious bug in Excel 2007
Post by: Morat20 on September 26, 2007, 12:47:55 PM
Computer Science 101 ftw.
Overflow errors are so freakin' common. We try to right overflow-proof classes as much as we can here, but you always miss something.


Title: Re: Math is hard - serious bug in Excel 2007
Post by: Chenghiz on September 27, 2007, 11:41:00 AM
I'd like to take this opportunity to express the fact that Office 2007 is a badly designed crock of shit.


Title: Re: Math is hard - serious bug in Excel 2007
Post by: Lt.Dan on September 27, 2007, 04:04:42 PM
I thought about this and can't really see how this would break any of my spreadsheets. 

Cell referencing? Errr, 65k rows and you should be working in a real database.

External database calls?  See above.

Dates? Maybe.

Code? Maybe, but what the hell would you use integers of 65k or higher for?  An array that big would break excel.

Finance calculations?  We work to four decimal places in unit prices - the likelihood of hitting 65535.00 is basically nil.

Now if it had been floating point calc I'd be more worried...


Title: Re: Math is hard - serious bug in Excel 2007
Post by: sinij on September 27, 2007, 09:27:17 PM
Just in case some of you are using Excel 2007: Bug in Excel 2007 (http://groups.google.com/group/microsoft.public.excel/browse_thread/thread/2bcad1a1a4861879/2f8806d5400dfe22?hl=en#2f8806d5400dfe22)

Basically some calculations that should come out to 65535 are showing as 100000.


I know what I should ask my salary to be.


Title: Re: Math is hard - serious bug in Excel 2007
Post by: Murgos on September 28, 2007, 07:40:10 AM
Code? Maybe, but what the hell would you use integers of 65k or higher for?  An array that big would break excel.

Finance calculations?  We work to four decimal places in unit prices - the likelihood of hitting 65535.00 is basically nil.

We usually use MiniTab but test data and process evaluation is handled pretty well with a spreadsheet.  Linear regressions (amongst many other tools) and such on a few million data points is pretty handy, especially when you can just use it and not have to have all kinds of project specific programs to support.

As I recall Excel 2007 was supposed to lift the limit on number of rows you could work with (MiniTab is limited to 10 million) though I don't think anyone here was seriously considering using it.

When you are doing calculations on millions of items there is a pretty good chance that one of them might end up being 65535.


Title: Re: Math is hard - serious bug in Excel 2007
Post by: Soln on September 28, 2007, 01:12:00 PM
buffer overflow... someone didn't increment their array properly    :lol:

in other news, "Better Uninstall: AOL Instant Messenger Has Giant Worm Hole" (http://www.marketingvox.com/archives/2007/09/28/better-uninstall-aol-instant-messenger-has-giant-worm-hole/).  Good times.   :nda:


Title: Re: Math is hard - serious bug in Excel 2007
Post by: Valmorian on October 01, 2007, 07:19:09 AM
I thought about this and can't really see how this would break any of my spreadsheets. 

I'm not sure why 850 units times 77.10 would be such an impossible thing to encounter.


Title: Re: Math is hard - serious bug in Excel 2007
Post by: Lt.Dan on October 01, 2007, 05:38:21 PM
In the spreadsheets I use the calc would have to be 850.0000 times 77.1000 since all the inputs are to four decimal places (no rounding) - that's one in a hundred million right there.  That's just the calc.  There is also error checking at an aggregate level so the total of all the units is added up and multiplied by the price of those units to get a check on the total of the individual transactions.



Title: Re: Math is hard - serious bug in Excel 2007
Post by: hal on October 01, 2007, 06:53:26 PM
Um ..It is broke. Trust it only if you want to be fired.


Title: Re: Math is hard - serious bug in Excel 2007
Post by: Trippy on October 10, 2007, 06:05:22 AM
Fixes:

http://blogs.msdn.com/excel/archive/2007/10/09/calculation-issue-update-fix-available.aspx