Skip Menu |
 

This queue is for tickets about the Math-BigInt CPAN distribution.

Report information
The Basics
Id: 104012
Status: resolved
Priority: 0/
Queue: Math-BigInt

People
Owner: Nobody in particular
Requestors: peter.john.acklam [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in:
  • 1.55
  • 1.56
  • 1.57
  • 1.58
  • 1.59
  • 1.60
  • 1.61
  • 1.62
  • 1.63
  • 1.64
  • 1.65
  • 1.66
  • 1.67
  • 1.68
  • 1.69
  • 1.70
  • 1.71
  • 1.72
  • 1.73
  • 1.74
  • 1.75
  • 1.76
  • 1.77
  • 1.78
  • 1.79
  • 1.80
  • 1.82
  • 1.83
  • 1.84
  • 1.85
  • 1.86
  • 1.87
  • 1.88
  • 1.89
  • 1.90
  • 1.91
  • 1.92
  • 1.93
  • 1.94-TRIAL
  • 1.95
  • 1.96
  • 1.97
  • 1.98
  • 1.99
  • 1.99.1
  • 1.9902
  • 1.991
  • 1.992
  • 1.993
  • 1.997
  • 1.9993
  • 1.99_05
Fixed in: 1.999701



Subject: Math::BigFloat -> bceil() returns -1
MIME-Version: 1.0
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
Message-ID: <rt-4.0.18-10519-1430157009-1610.0-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 315
Download (untitled) / with headers
text/plain 315b
$x -> bceil() for -1 < $x < 0 returns -0. The docs says that -0 should never be returned. A simple example showing the bug: $ perl -MMath::BigFloat -wle 'print Math::BigFloat -> new("-0.4") -> bceil()' -0 The bug has been present in all versions at least back to, and including, the distribution Math-BigInt-1.55.
MIME-Version: 1.0
In-Reply-To: <rt-4.0.18-10519-1430157009-1610.0-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <rt-4.0.18-10519-1430157009-1610.0-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-10065-1430163112-1445.104012-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 109
Download (untitled) / with headers
text/plain 109b
bint() has the same problem: $ perl -MMath::BigFloat -wle 'print Math::BigFloat -> new("-0.4") -> bint()' -0
MIME-Version: 1.0
In-Reply-To: <rt-4.0.18-10065-1430163112-1445.104012-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <rt-4.0.18-10519-1430157009-1610.0-0-0 [...] rt.cpan.org> <rt-4.0.18-10065-1430163112-1445.104012-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-17904-1430306705-1169.104012-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 66
MIME-Version: 1.0
In-Reply-To: <rt-4.0.18-10519-1430157009-1610.0-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <rt-4.0.18-10519-1430157009-1610.0-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-16597-1442313396-403.104012-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 30
Fixed in Math-BigInt-1.999701.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.