Lines Matching defs:bigint
1 package bigint;
44 $hinthash->{bigint};
120 # the following two routines are for "use bigint qw/hex oct/;":
238 return $$hh{bigint} ? bigint::_hex_core($_[0])
247 return $$hh{bigint} ? bigint::_oct_core($_[0])
266 delete $^H{bigint}; # no longer in effect
273 $^H{bigint} = 1; # we are in effect
407 bigint - transparent big integer support for Perl
411 use bigint;
420 no bigint;
425 use bigint qw/hex oct/;
438 Unlike the L<integer> pragma, the C<bigint> pragma creates integers that are
443 use bigint;
474 =head2 use integer vs. use bigint
476 There are some difference between C<use integer> and C<use bigint>.
479 bigint> can handle arbitrarily large integers.
482 of some functions. C<use bigint> truncates these results to integer:
507 sub three_bigint { use bigint; return 3.2; }
513 C<bigint> recognizes some options that can be passed while loading it via
557 scope whenever the C<bigint> pragma is active.
564 current scope whenever the C<bigint> pragma is active.
579 use bigint lib => 'Calc';
583 use bigint lib => 'GMP';
588 use bigint lib => 'Foo,Math::BigInt::Bar';
594 use bigint try => 'GMP';
598 use bigint only => 'GMP';
657 Returns Euler's number C<e>, aka exp(1). Note that under C<bigint>, this is
664 Returns PI. Note that under C<bigint>, this is truncated to an integer, i.e., 3.
673 Note that under C<bigint>, the result is truncated to an integer.
683 Returns PI to the wanted accuracy. Note that under C<bigint>, this is truncated
708 use bigint;
710 print "in effect\n" if bigint::in_effect; # true
712 no bigint;
713 print "in effect\n" if bigint::in_effect; # false
716 Returns true or false if C<bigint> is in effect in the current scope.
734 C<bigint> works by overloading handling of integer and floating point literals,
742 use bigint;
747 outputs C<0> on default 32-bit builds, since C<bigint> never sees the string
756 with C<bigint> endpoints, nor is the iterator variable a C<Math::BigInt>.
772 C<bigint> overrides these routines with versions that can also handle big
776 C<no bigint>:
778 use bigint qw/hex oct/;
782 no bigint;
790 use bigint;
820 perldoc bigint