Note that I strongly discourage the use of integer.pm. The first paragraph of the documentation contains this whopper: "but on those without floating point hardware, it can make a big difference in performance". Good luck finding a computer without floating point acceleration that is still running. But even if you do, the slow down from doing floating point calculations is quite unlikely to be noticeable much less "a big difference" when talking about a Perl script.
Even worse is the other whopper from the first paragraph: "On many machines, this doesn't matter a great deal for most computations". Actually, it very often matters a lot for lots of computations not just because it prevents fractional values from being preserved but also because it very often greatly reduces the size of integer values that can be used.
int, however, allows faithful and accurate use of integer arithmetic to at least 52 bits on just about every platform I've seen Perl run on. Just use that instead.
- tye
In reply to Re^3: Loop Not Entered (integer.pm--)
by tye
in thread Loop Not Entered
by choroba
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |