This is a solution, but I doubt that this is what you were after. I don't see any clear way of doing it while not repeating the 301 and 60.
Minor update: Changed variable name $frac to better name $remain as this is what it is, a remainder instead of a fraction. Samy_rio++ for spotting this.
-- Hofmator
In reply to Re: grep integer and fractional part from a division (modulus ?)
by Hofmator
in thread grep integer and fractional part from a division (modulus ?)
by jeanluca
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |