develooper Front page | perl.perl5.porters | Postings from April 2015

[perl #124412] [PATCH] Fix bug in Math::BigFloat's bceil() and bint() methods.

From:
perlbug-followup
Date:
April 28, 2015 11:12
Subject:
[perl #124412] [PATCH] Fix bug in Math::BigFloat's bceil() and bint() methods.
Message ID:
rt-4.0.18-5330-1430219544-199.124412-75-0@perl.org
# New Ticket Created by  (Peter J. Acklam) 
# Please include the string:  [perl #124412]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=124412 >


Fix bug in Math::BigFloat's bceil() and bint() methods.

- When $x is a Math::BigFloat, $x -> bceil() and $x -> bint() for -1 < $x < 0
  returns -0. Negative zero is never used by Math::Big(Int|Float), and care has
  been taken to avoid it, so this bug is surely an oversight.

- This patch fixes CPAN RT #104012.



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