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

[perl #85296] [PATCH] Add bint() method for rounding towards zero.

Thread Previous | Thread Next
From:
Tony Cook via RT
Date:
August 15, 2013 04:21
Subject:
[perl #85296] [PATCH] Add bint() method for rounding towards zero.
Message ID:
rt-3.6.HEAD-2552-1376540461-1888.85296-15-0@perl.org
On Sun Jun 12 14:00:37 2011, sprout wrote:
> On Wed Mar 02 11:18:41 2011, pjacklam wrote:
> > Since bfloor() and bceil() exist, add bint() for completeness.  As
> > with
> > bfloor() and bceil(), bint() does not change the object class. This is
> > unlike as_int(), which converts the object to a Math::BigInt.
> > 
> > Rename bint() subroutine in the example section to bigint() to avoid
> > confusion with the new method bint().
> > 
> > Add tests for bint().
> > 
> > Add a little more precise documentation of bfloor() and bceil().
> 
> I could not apply this because of conflicts. Is there any chance you
> could resolve those against the latest blead, or was this patch
> superseded by another one I applied?

I've attached a clean patch that applies on top of my change from 86686.

I'll apply it in a few days unless someone objects.

Tony

---
via perlbug:  queue: perl5 status: open
https://rt.perl.org:443/rt3/Ticket/Display.html?id=85296

Thread Previous | Thread Next


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