develooper Front page | perl.perl5.porters | Postings from August 2001

FW: CPAN Upload: T/TE/TELS/Math-BigInt-1.39.tar.gz

From:
Tels
Date:
August 2, 2001 12:07
Subject:
FW: CPAN Upload: T/TE/TELS/Math-BigInt-1.39.tar.gz
Message ID:
perl.perl5.porters-41275@nntp.perl.org
-----BEGIN PGP SIGNED MESSAGE-----

Moin,

- --------------Forward------------------------------------------
From: PAUSE <upload@p11.speed-link.de>
Subject: CPAN Upload: T/TE/TELS/Math-BigInt-1.39.tar.gz

The uploaded file

    Math-BigInt-1.39.tar.gz

has entered CPAN as

  file: $CPAN/authors/id/T/TE/TELS/Math-BigInt-1.39.tar.gz
  size: 87019 bytes
   md5: 656afc44a59d009e1a39d7f655e21525

- --------------End of forwarded message-------------------------

There is also a new version of Math::String. New versions of
Math::BigInt::BitVect, Math::BigInt::Pari will follow shortly (they need
some work with these negative inputs in band(), bxor() etc).

There will also be shortly Math::BigInt::GMP, making the following possible:

        use Math::BigInt lib => 'GMP';

or even this:

        use Math::BigInt lib => 'GMP, Pari, BitVect';

GMP is done, except for the same problem of negative values. 

Here is a short blurb on what is new in BigInt v1.39:

Oh, darn I forgot to implement the dropping of '+' for plus infintiy in
$x->bstr() :-/ Ugh, v1.40 will follow this weekend, then.

##########################################################################
This lists only the changes for the current release (v1.39) over the last
version, since HISTORY is now quite big:

Fixes and enhancements:
  Some calls to $CALC were not assigning the return value back to
$x->{value}
    (This is important when the lib does not modify the args, but returns a
     new value instead; sometimes this is ineviteable)
  Improved infinity handling (complete with tests):
    +-123 / +-inf => 0
    123 / 0 => +inf, -123 / 0 => -inf in MBF
    +inf - +inf = 0, -inf + -inf = 0, -inf - -inf = -inf, +inf + +inf = +inf
    +inf++ or +inf-- => +inf, -inf -- or -inf ++ => -inf
    +inf <=> -inf etc 
    $x->binf()->bstr() => 'inf', not '+inf' (for cmp, eg etc)
  MBF: there were no tests for fdec() and finc()
  MBF: numbers with set precision/accuracy are zero padded
        1234, a=3 => 1230, 1234, a=6 => 1234.00, 123, p=3 => 123.000
  MBI: test for 1234.00 as valid input
  _split() had accidentily 'return return ...', also streamlined it a bit
  Negative inputs in band(), bxor(), bior() and bsrft()/blsft() were broken
  Hexadecimal/binary inputs with underscrores were broken
  
Please have arbitrarily big amounts of fun.

Tels <http://bloodgate.com/perl>



- -- 
perl -MMath::String -e 'print \
Math::String->from_number("215960156869840440586892398248"),"\n"'

 http://bloodgate.com/thief/     Thief - The Dark Project
 http://bloodgate.com/perl       My current Perl projects
 http://freedomforlinks.de       Fight for your right to link. 
 PGP key available on http://bloodgate.com/tels.asc or via email.


-----BEGIN PGP SIGNATURE-----
Version: 2.6.3i
Charset: latin1

iQEVAwUBO2mkBXcLPEOTuEwVAQHpMwf9EXKUf01EV05kTvd14f61uFZ0R+Ny4Z4T
nWOC9MQKHfX9MWF5kXIm3+gGPJNL0YJJeTiXDs0tWUBquKirIPGZa91ovlLqu/nF
a98XOg0vbALZvdF/lec80berwK5JVN8HPGK2vVuLcPeZaoD6YA3850RU22vwIxuj
EZOVmJI5Eq8GZ5/b52kfyVqJqubXYC5EARfYuw7FJpETyWhnzYH5RPCarXc9I9md
W27cV0+mbSbE1e+HKwr1nwqeTyzgBFD3RGL3w9SR/1WBp+s1JMXVI/UXOQPonsP1
0bWCm2UxN5BKzVRAN2x484kWGT9mbS2xdICTBppm0Ub0jhqRWeBWUQ==
=b8zX
-----END PGP SIGNATURE-----



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About