U
Ulrich Dorda
I need a pytho nscript to read numbers(with loads of digits) from a
file, do some basic math on it and write the result out to another file.
My problem: I don't get python to use more digits:
In order to try this I type:
The normal precision one: 1.2345678912345679000000000e+000
Now I try to use float64 to get more digits
This cuts the digits just like the 32bit case.
Can anyone please help me get more digits?
Thank you very much in advance,
Ulrich
file, do some basic math on it and write the result out to another file.
My problem: I don't get python to use more digits:
In order to try this I type:
The normal precision one: 1.2345678912345679000000000e+000
Now I try to use float64 to get more digits
1.2345678912345679000000000e+000>>> z=zeros(3,float64)
>>> z[0] 0.0
>>> type(z[0])>>> z[0]=1.23456789123456789123456789
>>> type(z[0])>>> print "%35.25e" %z[0]
This cuts the digits just like the 32bit case.
Can anyone please help me get more digits?
Thank you very much in advance,
Ulrich