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

Re: [PATCH 5.7.0] overload int()

Thread Previous
Jarkko Hietaniemi
January 24, 2001 20:23
Re: [PATCH 5.7.0] overload int()
Message ID:
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++; #
        # There is this special biologist word we use for 'stable'.
        # It is 'dead'. -- Jack Cohen

Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About