You might also want to look at the overload / override modules on CPAN.use strict; use warnings; print myrem(4, 2.5); sub myrem { return $_[0] - int ($_[0] / $_[1]) * $_[1]; };
In reply to Re: Modulo of fraction?
by TedPride
in thread Modulo of fraction?
by crenz
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |