home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / C / Applications / MacPerl 5.0.3 / MacPerl Source ƒ / MacPerl5 / pod / modpods / integer.pod < prev    next >
Encoding:
Text File  |  1994-12-26  |  498 b   |  19 lines  |  [TEXT/MPS ]

  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>.
  19.