RE: ORA-FO-NEGATIVE-ZERO 6.1 Numeric Types

However, implementations that correctly implement -0.0 would return -INF for
1E0 div -0E0.  Consequently, the following function tests for negative zero:
 
define function is-negative-zero($x as xs:double) as xs:boolean {
  ($x eq 0E0) and ((1E0 div $x) lt 0E0)
}

-----Original Message-----
From: public-qt-comments-request@w3.org
[mailto:public-qt-comments-request@w3.org] On Behalf Of Ashok Malhotra
Sent: Wednesday, July 23, 2003 5:46 AM
To: Stephen Buxton; public-qt-comments@w3.org
Subject: RE: ORA-FO-NEGATIVE-ZERO 6.1 Numeric Types 



Positive and negative zero compare equal and cannot be distinguished in our
specification.

All the best, Ashok 


  _____  


From: public-qt-comments-request@w3.org
[mailto:public-qt-comments-request@w3.org] On Behalf Of Stephen Buxton
Sent: Monday, June 30, 2003 6:34 PM
To: public-qt-comments@w3.org
Subject: ORA-FO-NEGATIVE-ZERO 6.1 Numeric Types 

 

Functions and Operators, Section 6.1 Numeric Types 


Are there any operations that distinguish a -0 from a +0 ? 
Or is the distinction only apparent on serialization ?

Received on Wednesday, 23 July 2003 14:47:55 UTC