in reply to Re: grep integer and fractional part from a division (modulus ?)
in thread grep integer and fractional part from a division (modulus ?)
One could write
but that is definitely less clear, even though it avoids the repetion of the numbers.($q, $r) = ( int( ($n=301) / ($d=60) ) , $n % $d );
|
|---|