This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jftuga
Recipients jftuga
Date 2016-02-23.21:25:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1456262746.09.0.528501038499.issue26422@psf.upfronthosting.co.za>
In-reply-to
Content
The print statement does not display accurate results.

code:
    print("%35d" % (1e21))
    print("%35d" % (1e22))
    print("%35d" % (1e23))
    print("%35d" % (1e24))
    print("%35d" % (1e25))
    print("%35d" % (1e26))
    print("%35d" % (1e27))
    print("%35d" % (1e28))
    print("%35d" % (1e29))
    print("%35d" % (1e30))
    print("%35d" % (1e31))

result:
             1000000000000000000000
            10000000000000000000000
            99999999999999991611392
           999999999999999983222784
         10000000000000000905969664
        100000000000000004764729344
       1000000000000000013287555072
       9999999999999999583119736832
      99999999999999991433150857216
    1000000000000000019884624838656
    9999999999999999635896294965248

Platforms:
Windows 10 x64, Python 3.5.1
Debian 8 (jessie), Python 3.5.1
History
Date User Action Args
2016-02-23 21:25:46jftugasetrecipients: + jftuga
2016-02-23 21:25:46jftugasetmessageid: <1456262746.09.0.528501038499.issue26422@psf.upfronthosting.co.za>
2016-02-23 21:25:46jftugalinkissue26422 messages
2016-02-23 21:25:45jftugacreate