Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: finding the correct integer

by LanX (Saint)
on Nov 30, 2020 at 22:10 UTC ( [id://11124420]=note: print w/replies, xml ) Need Help??


in reply to Re: finding the correct integer
in thread finding the correct integer

another nitpick, the OP asked for int not rounding

please compare:

DB<6> print int 0.65049 / 0.0001; 6504 DB<7> printf("%4.0f\n", 0.65049 / 0.0001); 6505 DB<8>

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (8)
As of 2024-04-19 08:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found