W3C home > Mailing lists > Public > public-qt-comments@w3.org > July 2003

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

From: Michael Brundage <xquery@comcast.net>
Date: Wed, 23 Jul 2003 11:48:42 -0700
To: "'Ashok Malhotra'" <ashokma@microsoft.com>, "'Stephen Buxton'" <stephen.buxton@oracle.com>, <public-qt-comments@w3.org>
Message-ID: <001c01c3514b$0a201e60$6501a8c0@xpider>
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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:56:48 UTC