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.

classification
Title: Expose a simple "is IEEE 754" flag in sys.float_info
Type: enhancement Stage:
Components: Library (Lib) Versions: Python 3.6
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: eric.smith, lemburg, mark.dickinson, random832, stutzbach
Priority: normal Keywords:

Created on 2015-12-31 20:59 by random832, last changed 2022-04-11 14:58 by admin.

Messages (1)
msg257260 - (view) Author: (random832) Date: 2015-12-31 20:59
I think it would be useful for programs to be able to detect whether a system uses IEEE-754 double-precision values for the 'float' type. There is lots of detailed information about the float type in sys.float_info, but no simple "is IEEE" flag. On some C implementations, this is exposed as __STDC_IEC_559__.
History
Date User Action Args
2022-04-11 14:58:25adminsetgithub: 70172
2016-01-02 00:11:41terry.reedysetnosy: + lemburg, mark.dickinson, eric.smith, stutzbach
2015-12-31 21:01:52random832settype: enhancement
components: + Library (Lib)
versions: + Python 3.6
2015-12-31 20:59:50random832create