Whether it's faster or not you'll have to determine yourself, but it's another way:
use POSIX qw[ fmod ];; print fmod( $_, 100 ) for 12300, 12301, 12399;; 0 1 99
In reply to Re: modulus and floating point numbers
by BrowserUk
in thread modulus and floating point numbers
by dextius
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |