I have a long double in some python code,
In [51]: psr[0]['F0'].val
Out[51]: 205.53069608827314596
I want to set this to a different value, which is also a long double:
In [52]: newparam
Out[52]: 205.53069608827315375
I can add large numbers to the first quantity, eg:
In [53]: psr[0]['F0'].val = psr[0]['F0'].val+1
In [55]: psr[0]['F0'].val
Out[55]: 206.53069608827314596
but i cant get it to take the value of new param:
In [50]: psr[0]['F0'].val=newparam
In [51]: psr[0]['F0'].val
Out[51]: 205.53069608827314596
If i look to see what the 'nextafter' is:
In [61]: np.nextafter(psr[0]['F0'].val, 300)
Out[61]: 205.53069608827314597
So i dont understand why i can't get it to take the value of newparam.. I've got C code that does this, so i'm sure Python must be able to aswell.