develooper Front page | perl.perl5.porters | Postings from January 2001

Re: [PATCH 5.7.0] overload int()

Thread Previous
From:
Jarkko Hietaniemi
Date:
January 24, 2001 20:23
Subject:
Re: [PATCH 5.7.0] overload int()
Message ID:
20010124222316.M26984@chaos.wustl.edu
On Wed, Jan 24, 2001 at 07:06:57PM -0500, Ilya Zakharevich wrote:
> Some arithmetic algos do not work with overloading, since there is
> more arithmetic operation which was not overloaded: int().  This patch
> closes this hole.
> 
> When putting things in BigFloat to test it more, I thrown in :constant
> key for 'use Math::BigFloat', so now it behaves as Math::BigInt.
> 
>   perl -MMath::BigFloat=:constant -wle 'print 2*1427247692705959881058285969449495136382746624.'
>   2854495385411919762116571938898990272765493248.

Thanks, applied.

-- 
$jhi++; # http://www.iki.fi/jhi/
        # There is this special biologist word we use for 'stable'.
        # It is 'dead'. -- Jack Cohen

Thread Previous


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