G
GCRhoads
I'm looking for a very basic high-precision arithmetic library. I
need to be able to specify a fixed number of bits or decimal digits
(32 decimal digits should be all I need). The only arithmetic
functions I need are addition, subtraction, multiplication, division,
square-root, and comparison (i.e. less-than, greater-than, equal).
Preferably this should be in C++ but I could use C by putting
everything into a single class. I looked at a couple of packages but
they were massive in size, a huge overkill for my needs. I don't need
arbitrary precision, FFT-based multiplication, etc. I could write my
own package but this task seems like a common enough need that I would
be surprised if there aren't some freeware or shareware packages much
more suited to my needs. Any suggestions on an efficient small
package that handles a fixed number of digits?
If you want to respond by email, then use the following email address
(I use the volcanomail address only for reading and posting to
newsgroups and other public forums -- to avoid spammers.)
rhoads "at" cs "dot" rutgers "dot" edu
need to be able to specify a fixed number of bits or decimal digits
(32 decimal digits should be all I need). The only arithmetic
functions I need are addition, subtraction, multiplication, division,
square-root, and comparison (i.e. less-than, greater-than, equal).
Preferably this should be in C++ but I could use C by putting
everything into a single class. I looked at a couple of packages but
they were massive in size, a huge overkill for my needs. I don't need
arbitrary precision, FFT-based multiplication, etc. I could write my
own package but this task seems like a common enough need that I would
be surprised if there aren't some freeware or shareware packages much
more suited to my needs. Any suggestions on an efficient small
package that handles a fixed number of digits?
If you want to respond by email, then use the following email address
(I use the volcanomail address only for reading and posting to
newsgroups and other public forums -- to avoid spammers.)
rhoads "at" cs "dot" rutgers "dot" edu