![]() |
|
Think about Loose Coupling | |
PerlMonks |
Modulo operation to return quotient and remainderby darklord_999 (Acolyte) |
on Jul 11, 2012 at 19:42 UTC ( [id://981240]=perlquestion: print w/replies, xml ) | Need Help?? |
darklord_999 has asked for the wisdom of the Perl Monks concerning the following question: Is there any way that we can get the quotient and remainder for a modulus operation in perl ? For example : I have a variable $var = 4999. I perform a modulo operation on it (%100) and get values of 49(quotient) and 99 (remainder) and assign it to two different variables. Is there any module or way to do this in perl ?
Back to
Seekers of Perl Wisdom
|
|