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

Re: Multiply with 100 in perl

by hdb (Monsignor)
on Nov 11, 2015 at 20:10 UTC ( [id://1147489]=note: print w/replies, xml ) Need Help??


in reply to Multiply with 100 in perl

This is probably not what you are looking for and limited to this very special case...

my $x = $ARGV[0].'00'; $x=~s/\.(..)/$1./; printf "%d\n", $x;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2024-04-24 20:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found