[Tutor] greater precision?

Mark Lawrence breamoreboy at yahoo.co.uk
Mon Oct 29 16:15:43 CET 2012


On 29/10/2012 12:00, Dave Angel wrote:
>
> Not silly at all.  I didn't realize str(float) would truncate to 12
> digits either.  I found out by experimenting (with 2.7) in the interpreter.
>
> Note that it may differ from version to version.  And that's another
> reason to use format.
>

It's 16 digits with 3.3.0.

-- 
Cheers.

Mark Lawrence.



More information about the Tutor mailing list