W3C home > Mailing lists > Public > public-qt-comments@w3.org > November 2004

RE: [F&O] rounding functions for decimal arguments

From: Michael Rys <mrys@microsoft.com>
Date: Sun, 28 Nov 2004 23:41:50 -0800
Message-ID: <BAE415CEAA831548800F68C44E905AF5F74D01@RED-MSG-60.redmond.corp.microsoft.com>
To: "Colin Paul Adams" <colin@colina.demon.co.uk>, <public-qt-comments@w3.org>

Neither of the NaN, -inf, +inf are valid xs:decimal values. And you do
not want to return an xs:double value for fn:abs() (or any other
function) if you pass in an xs:decimal...

I hope this helps
Michael

> -----Original Message-----
> From: public-qt-comments-request@w3.org [mailto:public-qt-comments-
> request@w3.org] On Behalf Of Colin Paul Adams
> Sent: Sunday, November 28, 2004 11:02 PM
> To: public-qt-comments@w3.org
> Subject: [F&O] rounding functions for decimal arguments
> 
> 
> The draft says:
> 
> "For xs:float and xs:double arguments, if the argument is "NaN", "NaN"
> is returned.
> Except for fn:abs(), for xs:float and xs:double arguments, if the
> argument is positive or negative infinity, positive or negative
> infinity is returned."
> 
> Why not for xs:decimal too?
> --
> Colin Paul Adams
> Preston Lancashire
Received on Monday, 29 November 2004 07:42:27 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:14:37 GMT