Why 3.0/5.0 = 0.59999...

Davy zhushenli at gmail.com
Tue May 9 09:23:24 CEST 2006

Hi all,

I used to be a Matlab user. And want to use Python to replace some
Matlab work.

When I type 3.0/5.0, the result is 0.59999...

Is there some precision loss? And how to overcome it?

Any suggestions will be appreciated!
Best regards,

More information about the Python-list mailing list