Decimal() instead of float?

Fredrik Lundh fredrik at pythonware.com
Fri Nov 17 15:25:34 EST 2006


Michael B. Trausch wrote:

> I don't have (so far as I know) a 64-bit float available to me.

as mentioned in the documentation, Python's "float" datatype is 
implemented C doubles, which is 64-bit IEEE on all major platforms.

> Some of the lat/long pairs that I have used seem to come out fine, but 
> some do not.  Because the mathmatics used with them involve complex 
> equations when determining distance and the like, any error gets 
> massively compounded before a final result is evident.

sorry, but I don't think you have the slightest idea what you're doing, 
really.

</F>




More information about the Python-list mailing list