Re: Draft minutes for QT4CG meeting 003, 2022-09-20

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