Re: too long float

2008-02-02 Thread Grant Edwards
On 2008-02-02, Steve Holden <[EMAIL PROTECTED]> wrote: >> Apparently you don't know the first thing about floating point >> numbers. I suggest reading the wikipedia entry. >> http://en.wikipedia/wiki/floating_point > > Don't think you are the first person to make this mistake, by the way. > Despi

Re: too long float

2008-02-02 Thread Steve Holden
Albert van der Horst wrote: > In article <[EMAIL PROTECTED]>, > Bart Ogryczak <[EMAIL PROTECTED]> wrote: >> On 2008-01-18, citizen J. Peng testified: >>> hello, >>> >>> why this happened on my python? >> a=3.9 >> a >>> 3.8999 > a = 3.9 > print a >> 3.9 > > This has not

Re: too long float

2008-02-02 Thread Albert van der Horst
In article <[EMAIL PROTECTED]>, Bart Ogryczak <[EMAIL PROTECTED]> wrote: >On 2008-01-18, citizen J. Peng testified: >> hello, >> >> why this happened on my python? > > a=3.9 > a >> 3.8999 > a = 3.9 print a >3.9 This has nothing to do with python. Apparently you don'

Re: too long float

2008-01-20 Thread Bart Ogryczak
On 2008-01-18, citizen J. Peng testified: > hello, > > why this happened on my python? a=3.9 a > 3.8999 >>> a = 3.9 >>> print a 3.9 bart -- "PLEASE DO *NOT* EDIT or poldek will hate you." - packages.dir (PLD) http://candajon.azorragarse.info/ http://azorragarse.candajon.in

Re: too long float

2008-01-18 Thread J. Peng
thanks all! On Jan 18, 2008 3:49 PM, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > On Fri, 18 Jan 2008 13:55:17 +0800, "J. Peng" <[EMAIL PROTECTED]> > declaimed the following in comp.lang.python: > > > > > why this happened on my python? > > > > >>> a=3.9 > > >>> a > > 3.8999 > > > >

Re: too long float

2008-01-17 Thread Chris
On Jan 18, 7:55 am, "J. Peng" <[EMAIL PROTECTED]> wrote: > hello, > > why this happened on my python? > > >>> a=3.9 > >>> a > > 3.8999 > > I wanted 3.9 but got 3.89 > How to avoid it? thanks. > > this is my python version: > > >>> sys.version > > '2.3.4 (#1, Feb 6 2006,

too long float

2008-01-17 Thread J. Peng
hello, why this happened on my python? >>> a=3.9 >>> a 3.8999 I wanted 3.9 but got 3.89 How to avoid it? thanks. this is my python version: >>> sys.version '2.3.4 (#1, Feb 6 2006, 10:38:46) \n[GCC 3.4.5 20051201 (Red Hat 3.4.5-2)]' -- http://mail.python.org/mailma