develooper Front page | perl.perl6.internals.bignum | Postings from November 2001

Re: BIGNUM memory and questions

Thread Previous | Thread Next
From:
Andy Dougherty
Date:
November 28, 2001 08:17
Subject:
Re: BIGNUM memory and questions
Message ID:
Pine.SOL.4.10.10111272059330.19370-100000@maxwell.phys.lafayette.edu
> > > bcd is more accurate which is a prime reason. 
> > 
> > This is untrue. Neither binary nor BCD are more or less accurare.
> 
> The BCD form is handling fractional parts too, hence the accuracy comment. 

BCD can accurately represent reals which are exact decimal fractions.
Binary can accurately represent reals which are exact binary fractions.
Those are both small subsets of the complete set of reals.

I could imagine a quality implementation using either encoding.  Which is
faster may well turn out to be dependedent upon the type of problem
encountered.

-- 
    Andy Dougherty		doughera@lafayette.edu
    Dept. of Physics
    Lafayette College, Easton PA 18042



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