[Tutor] Float number accuracy
Julia
midnightjulia at gmail.com
Thu Jul 10 22:41:28 CEST 2008
I've done this:
>>> c = float
>>> c
<type 'float'>
>>> c = 3.3
>>> c
3.2999999999999998
I've done it with and without the c = float and still it rounds the number
down. Why? And more importantly: is it possible to make Python more
accurate? I need the exact number and not something close to it for my new
application.
I'm looking for a = 3.3 and nothing else :)
Best regards!
/MJ
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20080710/9f8b6d8e/attachment.htm>
More information about the Tutor
mailing list