Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Printf/Sprintf Behavior Change

by kennethk (Abbot)
on Sep 16, 2013 at 16:38 UTC ( #1054315=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    printf "%0.018f\n", 0.345;
    printf "%0.018f\n", (3.49 / 2) - 1.4;
    
  2. or download this
    0.344999999999999970
    0.345000000000000200
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1054315]
help
Chatterbox?
holli just found out one of his friends is a flat-earther
LanX revealed by his flat jokes?

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (8)
As of 2017-10-24 12:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (289 votes). Check out past polls.

    Notices?