This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 112e. See for the official list.


2139. Floating-point requirements for integer representation

Section: 7.3.11  [conv.fpint]     Status: NAD     Submitter: Tony Van Eerd     Date: 2015-06-12

There is no normative requirement regarding the ability of floating-point values to represent integer values exactly; however, 7.3.11 [conv.fpint] paragraph 2 appears to implicitly rely on their ability to represent the values 0 and 1:

If the source type is bool, the value false is converted to zero and the value true is converted to one.

Rationale (October, 2015):

CWG felt that the cited passage should be read as indicating that converting true and false should have the same result as converting 1 and 0 and thus do not imply a requirement that those values be represented exactly.