Title: Expose a simple "is IEEE 754" flag in sys.float_info
Type: enhancement Stage:
Components: Library (Lib) Versions: Python 3.6
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 2016-01-02 00:11 by terry.reedy.

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__.
Date User Action Args
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