summaryrefslogtreecommitdiff
path: root/INSTALL
diff options
context:
space:
mode:
authorPeter John Acklam <pjacklam@online.no>2010-12-26 13:45:54 -0800
committerFather Chrysostomos <sprout@cpan.org>2010-12-26 14:37:05 -0800
commitaa45dafa2821e33c669c8f497ab746aa7f86b0d6 (patch)
tree3acc809b76a7ffa30864310b1cce32e85c9362b9 /INSTALL
parente5dcd524f24400d4c59ff25e99f07d5397388205 (diff)
downloadperl-aa45dafa2821e33c669c8f497ab746aa7f86b0d6.tar.gz
Fix RT 62764: Math::BigFloat->bcmp() fails.
Why: The Math::BigFloat->bcmp() method returns the wrong result when the exponent is too large to be represented exactly as a Perl numerical scalar. In such cases, bcmp() returns 0 because it fails to distinguish between the two exponents. How: With this fix, bcmp() does not convert the exponents to Perl numerical scalars, but keeps them as arbitrary precision integers, thus returning the correct result regardsless of the number of digits in the exponent. Test: Two tests added. These tests fail with the old code. Files: - lib/Math/BigFloat.pm: New version of bcmp(). - t/bigfltpm.inc: Add two tests confirming desired behaviour. - t/bare_mbf.t: Increment test count. - t/bigfltpm.t: Increment test count. - t/sub_mbf.t: Increment test count. - t/with_sub.t Increment test count.
Diffstat (limited to 'INSTALL')
0 files changed, 0 insertions, 0 deletions