On Thu, Oct 05, 2006, Andrei Emeltchenko wrote:

> Python with default settings yields wrong result:
> >>> 1.4*2
> 2.7999999999999998
> >>> 

   2.8 and 2.7999999999999998 are the same value in IEEE-754 floating
point arithmetic. Please read http://docs.python.org/tut/node16.html

   Note that str(1.4*2) yields '2.8' which is probably what you want.

-- 
Sam.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to