bigint(3p) Perl Programmers Reference Guide bigint(3p)
bigint(3p) Perl Programmers Reference Guide bigint(3p) # bigint(3p) Perl Programmers Reference Guide bigint(3p) NNAAMMEE # bigint - transparent big integer support for Perl SSYYNNOOPPSSIISS # use bigint; $x = 2 + 4.5; # Math::BigInt 6 print 2 ** 512; # Math::BigInt 134...096 print inf + 42; # Math::BigInt inf print NaN * 7; # Math::BigInt NaN print hex("0x1234567890123490"); # Perl v5.10.0 or later { no bigint; print 2 ** 256; # a normal Perl scalar now } # for older Perls, import into current package: use bigint qw/hex oct/; print hex("0x1234567890123490"); print oct("01234567890123490"); DDEESSCCRRIIPPTTIIOONN # All numeric literal in the given scope are converted to Math::BigInt objects. ...