W3C home > Mailing lists > Public > public-qt-comments@w3.org > January 2005

RE: [F&O] INF, -INF and NaN - literals?

From: Ashok Malhotra <ashok.malhotra@oracle.com>
Date: Fri, 14 Jan 2005 00:59:42 -0800
To: Colin Paul Adams <colin@colina.demon.co.uk>, public-qt-comments@w3.org
Message-ID: <20050114005942890.00000001196@amalhotr-pc>

This is actually a comment on the XPath grammar.
These 3 literals need to be defined as numeric literals in section 3.1.1.

All the best, Ashok
 

> -----Original Message-----
> From: public-qt-comments-request@w3.org 
> [mailto:public-qt-comments-request@w3.org] On Behalf Of Colin 
> Paul Adams
> Sent: Friday, January 14, 2005 12:23 AM
> To: public-qt-comments@w3.org
> Subject: [F&O] INF, -INF and NaN - literals?
> 
> 
> 15.4.2.1 Shows an example:
> 
> fn:avg((INF, -INF)) returns NaN.
> 
> Are INF, -INF and NaN supposed to be literals of type 
> xs:double, as is implied by this example (at least, that's 
> the inference I draw)?
> Because the grammar for literals does not include them. 
> Elsewhwere I can only find mention of them as special string 
> values for the xs:double constructor.
> 
> My XPath parser currently parses these expressions as 
> child::INF etc. Clearly I have a problem with the 
> interpretation of the grammar.
> --
> Colin Paul Adams
> Preston Lancashire
> 
> 
> 
Received on Friday, 14 January 2005 09:00:30 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:03 UTC