Dependency of nagios-plugins-nwc-health-8.0-1.1.src.rpm
Name: perl-Math-BigInt
Project: openSUSE_13.2
Repository: oss
Title: Arbitrary size integer/float math package
Description:
All operators (including basic math operations) are overloaded if you
declare your big integers as
$i = new Math::BigInt '123_456_789_123_456_789';
Operations with overloaded operators preserve the arguments which is
exactly what you expect.
* Input
Input values to these routines may be any string, that looks like a
number and results in an integer, including hexadecimal and binary
numbers.
Scalars holding numbers may also be passed, but note that non-integer
numbers may already have lost precision due to the conversion to float.
Quote your input if you want BigInt to see all the digits:
$x = Math::BigInt->new(12345678890123456789); # bad
$x = Math::BigInt->new('12345678901234567890'); # good
You can include one underscore between any two digits.
This means integer values like 1.01E2 or even 1000E-2 are also accepted.
Non-integer values result in NaN.
Hexadecimal (prefixed with "0x") and binary numbers (prefixed with "0b")
are accepted, too. Please note that octal numbers are not recognized by
new(), so the following will print "123":
perl -MMath::BigInt -le 'print Math::BigInt->new("0123")'
To convert an octal number, use from_oct();
perl -MMath::BigInt -le 'print Math::BigInt->from_oct("0123")'
Currently, Math::BigInt::new() defaults to 0, while Math::BigInt::new('')
results in 'NaN'. This might change in the future, so use always the
following explicit forms to get a zero or NaN:
$zero = Math::BigInt->bzero();
$nan = Math::BigInt->bnan();
'bnorm()' on a BigInt object is now effectively a no-op, since the
numbers are always stored in normalized form. If passed a string, creates
a BigInt object from the input.
* Output
Output values are BigInt objects (normalized), except for the methods
which return a string (see the SYNOPSIS manpage).
Some routines ('is_odd()', 'is_even()', 'is_zero()', 'is_one()',
'is_nan()', etc.) return true or false, while others ('bcmp()',
'bacmp()') return either undef (if NaN is involved), <0, 0 or >0 and are
suited for sort.
Version: 1.9993
Release: 2.1.3
Architecture: noarch
Size: 156 KB
Build Time: 2014-10-06 15:18:21 +0200 (over 9 years ago)
Provides
Symbol | Required by |
---|---|
perl(Math::BigFloat) = 1.9993 | |
perl(Math::BigInt) | perl-GnuPG-Interface perl-Math-BigInt-GMP |
perl(Math::BigInt) = 1.9993 | perl-GnuPG-Interface perl-Math-BigInt-GMP |
perl(Math::BigInt::Calc) = ... | |
perl(Math::BigInt::CalcEmu)... | |
perl-Math-BigInt = 1.9993-2... |
Requires
Symbol | Provided by |
---|---|
perl(:MODULE_COMPAT_5.20.1) | perl |