Re: 80 bit precision ?
- From: "Sébastien Boisgérault" <Sebastien.Boisgerault@xxxxxxxxx>
- Date: 14 May 2005 02:35:42 -0700
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
.
- References:
- Re: 80 bit precision ?
- From: Terry Reedy
- Re: 80 bit precision ?
- Prev by Date: Re: replace text in unicode string
- Next by Date: Multiple "cmp"s chained one after another
- Previous by thread: Re: 80 bit precision ?
- Next by thread: Python in the news, somewhat
- Index(es):
Relevant Pages
|
|