Welcome to the Monastery | |
PerlMonks |
Re: mathematical operatorsby BazB (Priest) |
on Jun 16, 2003 at 21:59 UTC ( [id://266311]=note: print w/replies, xml ) | Need Help?? |
Not math, but perl -le 'print sprintf("%.0f", 5/3);'.
Update: monsieur_champs++ might well be right, but the AnonyMonk's question is unclear. 5/3 rounded to the nearest integer is 2, but so is 5 % 3 :-) If the information in this post is inaccurate, or just plain wrong, don't just downvote - please post explaining what's wrong.
In Section
Seekers of Perl Wisdom
|
|