code not true?

Moshe Zadka moshez at math.huji.ac.il
Sun Apr 23 08:47:00 CEST 2000


On Sun, 23 Apr 2000, Kragen Sitaker wrote:

> How many decimal digits are needed to make sure that 3 * (1/3) is
> indistinguishable from 1?

moshe-bombei:/home/moshe>python
Python 1.5.2 (#1, Feb 21 2000, 14:52:33)  [GCC 2.95.2 19991024 (release)]
on sunos5
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> (1.0/3)*3 == 1
1


Less then 17






More information about the Python-list mailing list