Integers and Floats
Cameron Laird
claird at starbase.neosoft.com
Wed Oct 13 18:04:15 EDT 1999
In article <19991011180728.A14620 at optiplex.palga.uucp>,
Gerrit Holl <gerrit at nl.linux.org> wrote:
>Hello,
>
>I know there is a difference between integers and floats, but I think the
>following is a little strange:
>
>18:07:48:3/499:gerrit at gerrit:~$ python
>Python 1.5.2 (#1, Aug 8 1999, 01:35:00) [GCC egcs-2.91.66 19990314/Linux (egcs- on linux2
>Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>>> 131 / 4
>32
>>>> 4 * 32
>128
>>>> 131 / 4 * 4
>128
.
.
[various hypotheticals]
.
Does the result of
>>> 131. / 4 * 4
make you feel any better?
--
Cameron Laird http://starbase.neosoft.com/~claird/home.html
claird at NeoSoft.com +1 281 996 8546 FAX
More information about the Python-list
mailing list