Commit | Line | Data |
a0d0e21e |
1 | =head1 NAME |
2 | |
3 | integer - Perl pragma to compute arithmetic in integer instead of double |
4 | |
5 | =head1 SYNOPSIS |
6 | |
7 | use integer; |
8 | $x = 10/3; |
9 | # $x is now 3, not 3.33333333333333333 |
10 | |
11 | =head1 DESCRIPTION |
12 | |
13 | This tells the compiler that it's okay to use integer operations |
14 | from here to the end of the enclosing BLOCK. On many machines, |
15 | this doesn't matter a great deal for most computations, but on those |
16 | without floating point hardware, it can make a big difference. |
17 | |
18 | See L<perlmod/Pragmatic Modules>. |