Clear questions and runnable code
get the best and fastest answer
Modulo operation to return quotient and remainderby darklord_999 (Acolyte)
|on Jul 11, 2012 at 19:42 UTC||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 ?