8.143. Math::BigIntAllows use of arbitrary length integers, in which the following apply to all methods, except as noted:
$i = Math::BigInt->new(string) Creates a new object, $i.
$i->babs Returns absolute value of $i.
$i->badd(bint) Returns sum of bint and $i.
$i->bcmp(bint) Compares $i to bint. The bcmp method returns -1, 0, or 1 depending on whether $f is less than, equal to, or greater than the number string given as an argument. If the number string is undefined or null, undef is returned.
$i->bdiv(bint) Returns $i divided by bint. In list context, returns a two-element array containing the quotient of the division and the remainder; in scalar context, returns only the quotient.
$i->bgcd(bint) Returns greatest common divisor of $i and bint.
$i->bmod(bint) Returns $i modulus bint.
$i->bmul(bint) Returns $i multiplied by bint.
$i->bneg Returns negative of $i.
$i->bnorm Returns normalization of $i.
$i->bsub(bint) Returns $i minus bint. Copyright © 2002 O'Reilly & Associates. All rights reserved. |
|