Re: bigint/bugnum library

new topic     » goto parent     » topic index » view thread      » older message » newer message
jimcbrown said...
bugmagnet said...

I notice that Lucius was developing a bignums library some years ago. Did anything come of that? Is there support for bignums in Euphoria? I know, I should RTFM but I'm reading the friendy forum instead.

bugmagnet

AFAIK, this was the last word on it. http://sourceforge.net/mailarchive/message.php?msg_id=29162387

In short, the idea was well received but the last known implementation was found lacking in a few areas, and no one has had time to to fix it (or prepare an alternative library).

A feature request for this is still open. http://openeuphoria.org/ticket/760.wc

The "money type of numbers" is BCD (binary coded decimal), where each 4 bits counts 0 to 9, and there's usually 4 bits used per 8bit computer bytes. Some cpus have a native bcd mode. I've used Lucius's lib, moving it into each include file as i downloaded new Euphoria versions, just like strtok.e and win32fil.e and titlebar.e and a few others with important functions.

There's various versions floating around: bcd_math.asm (June, 1997; by Morten Elling; limited to 48,000 digits), big.e, bigfixed.e[different versions], bigfixedmath.e, bigmath[different versions], bignum, and bignum_64bit. I leave it to Lucius to point out which is best for your particular needs. Or i can upload them all and you decide?

useless

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu