python rounding problem.
chun ping wang
cablepuff at hotmail.com
Sun May 7 03:31:20 EDT 2006
Hey i have a stupid question.
How do i get python to print the result in only three decimal place...
Example>>> round (2.995423333545555, 3)
2.9950000000000001
but i want to get rid of all trailing 0's..how would i do that?
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
More information about the Python-list
mailing list