use Math::BigInt; my ($n,$d) = (301, 60); my ($q, $r) = Math::BigInt -> new( $n ) -> bdiv( $d ); print "$n divided by $d equals $q with $r remaining";
In reply to Re: grep integer and fractional part from a division (modulus ?)
by rhesa
in thread grep integer and fractional part from a division (modulus ?)
by jeanluca
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |