July 2011
Sun Mon Tue Wed Thu Fri Sat
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31            

August 07, 2003
Panfur's Calculator

Mmm, nice bit via Jeff Thompson of CodeTek fame:

In Panther, launch Calculator, and do this calculation:

1503.93 - 863

(Sorry folks without Panther access). Nice, isn't it? Cats are not supposed to know math, yet hopefully Panther will learn to count before getting out of the door -- cause it's going to be even more excellent than before!

For the ones without Panfur, the result Calculator shows is 640.9300000000001 ;)

 Posted by slava at 11:24 AM | Comments (6) | TrackBack (0)
Related:
Comments

Looks like it matches the output from the (probable) underlying implementation.

Posted by: simon on August 7, 2003 12:35 PM

At least the new Calculator understands the order of operations. 2 + 4 * 6 = 26; not 36 as the old Calculator said.

Posted by: on August 7, 2003 12:52 PM

2.001 - 2 works too. I believe a similar bug (well, limitation of the underlying FP implementation) afflicted the calculator in Windows 3.1 too.

Posted by: Mihai Parparita on August 7, 2003 6:58 PM

Standard problems of doing floating point math. Unless you want to write your own libraries, that's what chips are going to give you.

Move along, nothing to see here...

Posted by: Joshua on August 7, 2003 9:10 PM

this isn't a panther bug. I get the same results on 10.2.6 on the paper tape, though the text field shows the right number.

Posted by: on August 8, 2003 6:29 AM

If you dont have Panther, this Java calcutor has the same problems:

http://javascript.internet.com/calculators/win-calculator.html

Posted by: on August 11, 2003 3:41 PM