Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 1. The Basics of Perl > Item 14. Handle big numbers with bignum

Item 14. Handle big numbers with bignum

Although Perl tries to hide its underlying architectural details from you, in some cases, such as with the highest (or lowest) number it can represent, it has to let those details leak through. Compilations to 32-bit perl are still common, and their integer range is limited to 32 bits. Try this Perl one-liner:

% perl -le 'print 1234567890123456789012345';


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint