"Steffen Glückselig" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
>>>> 1.0 + 3.0 + 4.6
> 8.5999999999999996
>
> Ehm, how could I get the intuitively 'correct' result of - say - 8.6?

>>> str(1.0+4.6+3.0)
'8.6'

See Lib Ref 2, Builtin functs, repr() and str(), Lan Ref (or tutorial) 
section on % formating, and probably a few FAQ entries.

Terry J. Reedy



-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to