Author Topic: Excel 2007 Multiplication Bug  (Read 2304 times)

0 Members and 1 Guest are viewing this topic.

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Excel 2007 Multiplication Bug
« on: September 25, 2007, 09:59:51 am »
http://groups.google.com/group/microsoft.public.excel/browse_thread/thread/2bcad1a1a4861879/2f8806d5400dfe22?hl=en#2f8806d5400dfe22

Apparently, if you multiple two numbers that make up 65,535, the result comes up 100,000.

Some people are saying this bug isn't serious. Personally, I'm going to ask my boss to change my salary to $65,535/year. :)

Offline rabbit

  • x86
  • Hero Member
  • *****
  • Posts: 8092
  • I speak for the entire clan (except Joe)
    • View Profile
Re: Excel 2007 Multiplication Bug
« Reply #1 on: September 25, 2007, 03:25:37 pm »
Hahaha....

Offline MyndFyre

  • Boticulator Extraordinaire
  • x86
  • Hero Member
  • *****
  • Posts: 4540
  • The wait is over.
    • View Profile
    • JinxBot :: the evolution in boticulation
Re: Excel 2007 Multiplication Bug
« Reply #2 on: September 26, 2007, 06:28:05 am »
Negativo.
I have a programming folder, and I have nothing of value there

Running with Code has a new home!

Our species really annoys me.

Offline MyndFyre

  • Boticulator Extraordinaire
  • x86
  • Hero Member
  • *****
  • Posts: 4540
  • The wait is over.
    • View Profile
    • JinxBot :: the evolution in boticulation
Re: Excel 2007 Multiplication Bug
« Reply #3 on: September 26, 2007, 06:32:40 am »
Actually, confirmed.  It's not any arbitrary pair of numbers, when I read the thread it said it's specifically 850*77.1.  Other variants don't reproduce it (85*771, 850*771/10, etc).

Weird!
I have a programming folder, and I have nothing of value there

Running with Code has a new home!

Our species really annoys me.

Offline Warrior

  • supreme mac daddy of trolls
  • Hero Member
  • *****
  • Posts: 7503
  • One for a Dime two for a Quarter!
    • View Profile
Re: Excel 2007 Multiplication Bug
« Reply #4 on: September 26, 2007, 06:48:20 am »
I hear someone typed 1000 in code instead of 0x1000 which caused all sorts of things to go haywire.

And this is only a display issue, I believe it still does the correct calculation.

My guess is, (since 65k happens to be the limit for 16bit unsigned integer) is that this is legacy handling for an older format which is accidently processing newer content.
One must ask oneself: "do I will trolling to become a universal law?" And then when one realizes "yes, I do will it to be such," one feels completely justified.
-- from Groundwork for the Metaphysics of Trolling

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: Excel 2007 Multiplication Bug
« Reply #5 on: September 26, 2007, 09:54:35 am »
Actually, confirmed.  It's not any arbitrary pair of numbers, when I read the thread it said it's specifically 850*77.1.  Other variants don't reproduce it (85*771, 850*771/10, etc).

Weird!
Apparently it works if one of the numbers has a specific type of floating point representation. 77.1 has that kind of representation. At least, that's what I heard.


I hear someone typed 1000 in code instead of 0x1000 which caused all sorts of things to go haywire.

And this is only a display issue, I believe it still does the correct calculation.

My guess is, (since 65k happens to be the limit for 16bit unsigned integer) is that this is legacy handling for an older format which is accidently processing newer content.
I don't know if it's making the right calculation or not. From what I've been told (it's all hearsay to me), if you subtract 1 you get 65,534 and if you add 1 you get 100,001. That pretty much means that the internal representation is screwed up or corrupted in some way.

Offline zorm

  • Hero Member
  • *****
  • Posts: 591
    • View Profile
    • Zorm's Page
Re: Excel 2007 Multiplication Bug
« Reply #6 on: September 26, 2007, 11:39:52 am »
The bug seems to exist, if a multiplication result is 65535 and one of the multiplicators? is a float with an infinite binary expression (according to IEE 754).
ie. 212.5*308.4 will produce the bug but 25*2621.4 will not, since 2621.4 has a finite expression.
I haven't been able to test though
"Frustra fit per plura quod potest fieri per pauciora"
- William of Ockham

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: Excel 2007 Multiplication Bug
« Reply #7 on: September 26, 2007, 11:41:30 am »
The bug seems to exist, if a multiplication result is 65535 and one of the multiplicators? is a float with an infinite binary expression (according to IEE 754).
ie. 212.5*308.4 will produce the bug but 25*2621.4 will not, since 2621.4 has a finite expression.
I haven't been able to test though
Heh, that's where I got the explanation from. :)

Offline Killer360

  • Hero Member
  • *****
  • Posts: 752
    • View Profile
Re: Excel 2007 Multiplication Bug
« Reply #8 on: September 28, 2007, 02:31:57 pm »

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: Excel 2007 Multiplication Bug
« Reply #9 on: September 28, 2007, 02:33:32 pm »
Full story: http://www.msnbc.msn.com/id/21033161/
That actually says less than the story I posted. Totally not a "full story"!

Offline Killer360

  • Hero Member
  • *****
  • Posts: 752
    • View Profile
Re: Excel 2007 Multiplication Bug
« Reply #10 on: September 28, 2007, 02:39:32 pm »
Full story: http://www.msnbc.msn.com/id/21033161/
That actually says less than the story I posted. Totally not a "full story"!
Technically, it is a "full story" because it explains everything.  :P