Re: Hrounding error

2008-06-18 Thread casevh
> > So it seems then that python might not be very good for doing > precision floating point work, because there is a good chance its > floating points will be off by a (very small) amount?  Or is there a > way to get around this and be guaranteed an accurate answer?- Hide quoted > text - > It's

Re: Hrounding error

2008-06-18 Thread cooperq
On Jun 18, 8:02 am, "Jerry Hill" <[EMAIL PROTECTED]> wrote: > On Wed, Jun 18, 2008 at 1:47 AM,  <[EMAIL PROTECTED]> wrote: > 234 - 23234.2345 > > -23000.2344 > > > This is not correct by my calculations. > > Python floating point operations use the underlying C floating point > librari

Re: Hrounding error

2008-06-18 Thread Jerry Hill
On Wed, Jun 18, 2008 at 1:47 AM, <[EMAIL PROTECTED]> wrote: 234 - 23234.2345 > -23000.2344 > > This is not correct by my calculations. Python floating point operations use the underlying C floating point libraries which, in turn, usually rely on the hardware's floating point implemen

Re: Hrounding error

2008-06-17 Thread Aidan
[EMAIL PROTECTED] wrote: Hi, I am new to python. I was messing around in the interperator checking out the floating point handling and I believe I may have found a rounding bug: 234 - 23234.2345 -23000.2344 This is not correct by my calculations. I am using python 2.5.2 in ubuntu 8

Re: Hrounding error

2008-06-17 Thread casevh
On Jun 17, 10:47 pm, [EMAIL PROTECTED] wrote: > Hi, > I am new to python.  I was messing around in the interperator checking > out the floating point handling and I believe I may have found a > rounding bug: > > >>> 234 - 23234.2345 > > -23000.2344 > > This is not correct by my calculations

Hrounding error

2008-06-17 Thread cooperq
Hi, I am new to python. I was messing around in the interperator checking out the floating point handling and I believe I may have found a rounding bug: >>> 234 - 23234.2345 -23000.2344 This is not correct by my calculations. I am using python 2.5.2 in ubuntu 8.04. I am wondering if t