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

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 UTC