[docs] Python 2.6 Float Error

Steven Doyle sdoyle at m4-engineering.com
Thu Apr 26 19:32:32 CEST 2012


Hi,

I'm running:
Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit (Intel)] on win32

I was testing out some print functionality and I made an error in typing (I meant to use %8.8f), but is this behavior intentional or is it an error?
>> print '%8.8s' %(10000000001.)
>> '10000000'

I would expect this to return a TypeError.

Steve



Steven P. Doyle
Staff Engineer
M4 Engineering, Inc.


562.981.7797 x231
562.981.2127 fax
steve.doyle at m4-engineering.com<mailto:steve.doyle at m4-engineering.com>




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/docs/attachments/20120426/70179c86/attachment.html>


More information about the docs mailing list