- From: Michael Kay <mike@saxonica.com>
- Date: Tue, 20 Sep 2022 20:20:03 +0100
- To: Norm Tovey-Walsh <norm@saxonica.com>
- Cc: public-xslt-40@w3.org
Received on Tuesday, 20 September 2022 19:20:18 UTC
RD: Casting a float or a double from the string "NaN" returns the corresponding NaN value, doesn’t it? MK: No it returns a failure, but the fn:number() function does. I mis-spoke here - sorry. xs:double("NaN") does indeed return the xs:double value NaN, and xs:float("NaN") returns the xs:float value NaN. What I was thinking of was the fact that whereas fn:number("junk") returns NaN, xs:double("junk") throws an error. Michael Kay
Received on Tuesday, 20 September 2022 19:20:18 UTC