Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Need Help with Perl Code

by Anonymous Monk
on Sep 24, 2017 at 07:29 UTC ( #1199979=note: print w/replies, xml ) Need Help??


in reply to Need Help with Perl Code

On Windows
perl -e "printf \"%.2f\n\",$ARGV[0]+0.005"
Stored as $ARGV[0]; returned with two decimal place accuracy (with roundup) via printf.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2018-09-23 08:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Eventually, "covfefe" will come to mean:













    Results (190 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!