Bug in __imul__ (OT)

Tomasz Lisowski lisowski.tomasz at sssa.NOSPAM.com.pl
Wed Jul 11 10:03:29 EDT 2001


Uzytkownik "Roman Suzi" <rnd at onego.ru> napisal w wiadomosci
news:mailman.994855218.12763.python-list at python.org...
> There is a joke about americans:
>
> they were confused that Excel give different result from
> pocket calculator:
>
> [5] [+] [3] [*] [4] [=]
>
> | 32 |
>
> is different from
>
> 5+3*4
>
> | 17 |
>
> as calculated by Excel.

LOL!
I have a similar example:
Run a MS Windows calculator (calc.exe), and enter the above given
keystrokes:

1. If your calculator is set to a standard view, the result is 32, as on the
american pocket calculator, but
2. If you set the calculator to professional view, the result is correct
(17) :-))))))))))))

This has been just exercised on Windows NT 4.0 workstation. Try it by
yourself :-)))
Tomasz





More information about the Python-list mailing list