cpan Math-BigInt 1.999811

latest releases: 2.003002, 2.003001, 2.002001...
7 years ago
  • Fix an old bug in the Math::BigFloat methods as_hex(), as_oct(), and
    as_bin() methods resulting in loss of accuracy. This bug was introduced in
    bug in Math-BigInt-1.76. Due to a naive copy and paste by me, and lack of
    tests, this bug was also present in the newer to_hex(), to_oct(), and
    to_bin() methods. This shows the bug, as it did not print "0xffff...":

    print Math::BigFloat -> from_hex("f" x 30) -> as_hex();

  • Fix incorrect formatting in the output from the Math::BigFloat methods
    to_hex(), to_oct(), and to_bin() when the output was zero. A prefix was
    added when it shouldn't have been.

  • Add tests to bigintpm.inc and bigfltpm.inc for better testing of as_hex(),
    as_oct(), and as_bin() as well as to_hex(), to_oct(), and to_bin().

  • "Synchronize" tests and code formatting in bigintpm.inc and bigfltpm.inc.

Don't miss a new Math-BigInt release

NewReleases is sending notifications on new releases.