Re: Long double in Python

2007-05-28 Thread Alex Martelli
Charles Vejnar <[EMAIL PROTECTED]> wrote: > Hi, > > Thanks for both suggestions. > > I have indeed tried gmpy. For me, it's not very important to choose between > numpy or gmpy. > > I hope I won't be off topic. But, as I told you before, I have a C library > using "long double" numbers and I wo

Re: Long double in Python

2007-05-26 Thread Charles Vejnar
Hi, Thanks for both suggestions. I have indeed tried gmpy. For me, it's not very important to choose between numpy or gmpy. I hope I won't be off topic. But, as I told you before, I have a C library using "long double" numbers and I would like to be able to use it in Python. I try to build a

Re: Long double in Python

2007-05-25 Thread [EMAIL PROTECTED]
On May 25, 2:40?pm, Charles Vejnar <[EMAIL PROTECTED]> wrote: > Hi, > > I have a C library using "long double" numbers. I would like to be able to > keep this precision in Python (even if it's not portable) : for the moment I > have to cast the "long double" numbers to "double" numbers. > > 1st sol

Re: Long double in Python

2007-05-25 Thread Robert Kern
Charles Vejnar wrote: > Hi, > > I have a C library using "long double" numbers. I would like to be able to > keep this precision in Python (even if it's not portable) : for the moment I > have to cast the "long double" numbers to "double" numbers. > > 1st solution . Is it possible that by re-co

Long double in Python

2007-05-25 Thread Charles Vejnar
Hi, I have a C library using "long double" numbers. I would like to be able to keep this precision in Python (even if it's not portable) : for the moment I have to cast the "long double" numbers to "double" numbers. 1st solution . Is it possible that by re-compiling Python, Python Float object