Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: mathematical operators

by djantzen (Priest)
on Jun 16, 2003 at 22:01 UTC ( [id://266316]=note: print w/replies, xml ) Need Help??


in reply to mathematical operator for integer division, "div" ?

You want the modulus operator (%), same as in Java. I.e., perl -e 'print(5 % 3, $/)'. See perlop.


"The dead do not recognize context" -- Kai, Lexx

Log In?
Username:
Password:

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

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

    No recent polls found