This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mark.dickinson
Recipients Kiriakos.Vlahos, Muhammad.Alkarouri, brian.curtin, eric.smith, loewis, malkarouri, mark.dickinson, pitrou, sjmachin, skrah, tim.peters
Date 2010-10-15.13:50:56
SpamBayes Score 1.5133459e-07
Marked as misclassified No
Message-id <1287150658.99.0.234896634953.issue9980@psf.upfronthosting.co.za>
In-reply-to
Content
> For example C# uses 80 bit precision

No, I don't think that's true.  It uses the x87, with its 64-bit internal precision, but I'm fairly sure that (as is almost always true in a Windows environment, except if you're using Delphi, apparently) the FPU precision is still set to 53-bit precision.

> if I understand http://blogs.msdn.com/b/davidnotario/archive/2005/08/08/449092.aspx well.

And that article explicitly confirms the use of 53-bit precision:

"Precision is set by default in VC++ and CLR apps to ‘double precision’, which means that if you are operating with operands of type float, results of operations done with floats actually exist in the x87 stack as if there were of type double. In fact, it’s even weirder than that. They will have the mantissa of a double, but the range (exponent) of an extended double (80 bit)."

i.e., it's using the x87 FPU with precision set to 53 bits.
History
Date User Action Args
2010-10-15 13:50:59mark.dickinsonsetrecipients: + mark.dickinson, tim.peters, loewis, sjmachin, pitrou, eric.smith, malkarouri, brian.curtin, skrah, Muhammad.Alkarouri, Kiriakos.Vlahos
2010-10-15 13:50:58mark.dickinsonsetmessageid: <1287150658.99.0.234896634953.issue9980@psf.upfronthosting.co.za>
2010-10-15 13:50:56mark.dickinsonlinkissue9980 messages
2010-10-15 13:50:56mark.dickinsoncreate