80 bit precision ?
Sébastien Boisgérault
Sebastien.Boisgerault at gmail.com
Sat May 14 05:35:42 EDT 2005
Terry Reedy a écrit :
> [...]
> Last I read, in CPython, the float type encapsulates a C double.
> So, does any C compiler implements doubles as 80 bit floats?
I seriously doubt it.
> Or, if it has 64 bit
> doubles and 80 bit long doubles, are the latter transparently
> substitutible for the former, so that you could change Python's
> float declaration and have everything work as expected? (I an
> not sure of either.)
Mmmmmm ... the python C code implementing the math module is
probably not that polymorphic <wink>. Even a call to "sqrt"
does not work as expected if the argument is a long double.
"sqrtl" should be use instead.
Cheers,
SB
More information about the Python-list
mailing list