aizu-m commented on PR #174: URL: https://github.com/apache/poi-xmlbeans/pull/174#issuecomment-7140079635
Good instinct on the citation, I'd quoted the value space line and that's the weak form of the argument. The direct sentence is in 1.0 2E 3.2.4, repeated in 3.2.5 for double: "This datatype differs from that of [IEEE 754-1985] in that there is only one NaN and only one zero." I've updated the description to that and the code comments now name the sections. The wording does differ in 1.1, as you remembered. 3.3.4 and 3.3.5 put `positiveZero` and `negativeZero` in the value space as separate values, then define equality as identity "except that 0 = -0", and spell out the consequence: "0 and -0 are thus equivalent for purposes of enumerations and identity constraints, as well as for minimum and maximum values". So 1.0 has one zero and 1.1 has two equal zeros, and both land on the same result for this patch. Worth flagging that the other half of that 1.1 change runs the opposite way: 1.1 makes NaN != NaN, where 1.0 has NaN equal to itself. XMLBeans follows 1.0 there and this patch deliberately leaves it be, so the bit tie-break stays for NaN. On the release notes, CHANGES.txt stops at 5.0.1 and points at status.html, so there's nothing in the tree for me to edit. Line if it's useful: * `xs:float` and `xs:double` now compare `0` and `-0` as equal, per XML Schema Part 2 3.2.4 and 3.2.5. This changes `XmlObject.valueEquals`, `compareValue` and `valueHashCode` for those two types, and the results of `enumeration`, identity constraints and the four bounding facets. `NaN` behaviour is unchanged. Glad to put that wherever the notes actually live if you'd rather it came in with the change. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
