Defect Report #218

Submitter: Clive Feather (UK)
Submission Date: 04-April-2000
Reference Document: NA
Version: 1.1
Date: 2000/04/18 02:48:44
Subject: signs of non-numeric floating point values
Summary
There is an implication at various points in the standard, notably the copysign function, that infinities and NaNs have signs. This is not the case in all implementations, and this needs to be allowed for.

Suggested Technical Corrigendum
Add a new paragraph to 5.2.4.2.2, preferably after [#3]:
[#3a] An implementation may give zero and non-numeric values (such as infinities and NaNs) a sign or may leave them unsigned. Wherever such values are unsigned, any requirement in this International Standard to retrieve the sign shall act as if the value were positive, and any requirement to set the sign shall be ignored.
or:
[...]
to retrieve the sign shall produce an unspecified sign, and any requirement to set the sign shall be ignored.

Previous Defect Report < - > Next Defect Report