Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^5: Padding with sprintf changing number

by syphilis (Archbishop)
on Sep 27, 2021 at 14:53 UTC ( [id://11137045]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Padding with sprintf changing number
in thread Padding with sprintf changing number

Yes, I had good reason to avoid mentioning python2's print() implementation ;-)
It apparently rounds to even fewer decimal digits than perl5:
$ python2 -c 'print 2 ** 0.5' 1.41421356237 $ perl -le 'print 2 ** 0.5' 1.4142135623731
At least they've done something about it.
Maybe perl7 will do the same.

Cheers,
Rob

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11137045]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2025-11-17 13:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (72 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.