URLS:
http://gmpy.sourceforge.net/
http://www.egenix.com/files/python/mxNumber.html
I'd like to go with the better of the two but would rather not dive into
extensive testing/comparison if someone knows of a definitive answer off
hand.
Thanks,
f.
While we're at it, is there any Python extension for fixed point
arithmetic available? pyPgSQL has a fixed point type implemented in
Python, which should eventually be replaced by a C type. It would be
great if I could borrow code somewhere.
Gerhard
--
mail: gerhard <at> bigfoot <dot> de registered Linux user #64239
web: http://www.cs.fhm.edu/~ifw00065/ OpenPGP public key id AD24C930
public key fingerprint: 3FCC 8700 3012 0A9E B0C9 3667 814B 9CAA AD24 C930
reduce(lambda x,y:x+y,map(lambda x:chr(ord(x)^42),tuple('zS^BED\nX_FOY\x0b')))
Not exactly what you want, but David H. Bailey's multiprecision software
(see http://www.nersc.gov/~dhbailey/mpdist/mpdist.html) should be easily
swigable, esp. the "C/C++ and Fortran-90 quad-double and double-double
precision programs" (http://www.nersc.gov/~dhbailey/mpdist/qd.tar.gz).
See also: http://www.nersc.gov/~dhbailey/dhbpapers/arith15.pdf and
http://www.nersc.gov/~dhbailey/dhbpapers/quad-double.pdf
Carl
The former is still true for mxNumber, the latter is not: I'm just waiting
for GMP4 itself to settle and get a working Windows port of ready for
production use.
Please remember that mxNumber is still in the experimental stage.
My intention is to use mxNumber with a fixed point decimal type
to use in database interaction for storing mxODBC decimal column
data.
> URLS:
>
> http://gmpy.sourceforge.net/
> http://www.egenix.com/files/python/mxNumber.html
>
> I'd like to go with the better of the two but would rather not dive into
> extensive testing/comparison if someone knows of a definitive answer off
> hand.
--
Marc-Andre Lemburg
CEO eGenix.com Software GmbH
______________________________________________________________________
Company & Consulting: http://www.egenix.com/
Python Software: http://www.egenix.com/files/python/