I have always found binary coded decimal (BCD) the simplest for this purpose, as it is directly extensible to any length, with only a few lines of code. Please see any (low-level; i.e., machine-code) book on arithmetic algorithms. They may not teach BCD anymore, but back in the day... (i.e., Earth still cooling, ...).

On 24-May-05, at 2:38 PM, [EMAIL PROTECTED] wrote:

You probably can find a long list of "ACM Programming Contest" long
math algorithms.  At least when I was on our College's team, the ACM
loved to put problems involving long math in the mix.  As far as I
know every team had ready-to-go source for long-math operations just
for that reason.  We only got burned by not being ready for this type
of situation once before we made sure we did.

_______________________________________________
use-revolution mailing list
[email protected]
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to