[xquery-talk] Literal NaN
John Snelson
John.Snelson at marklogic.com
Mon Feb 28 09:35:28 PST 2011
You can also use deep-equal():
deep-equal($x, xs:double("NaN"))
John
On 28 Feb 2011, at 16:36, David Carlisle wrote:
> On 25/02/2011 15:29, David Lee wrote:
>
>> Or have to use conversion to string , or maybe something equally obtuse
>>
>>
>
> You can test if $x is a NaN using the predicate $x = $x which is false
> for NaN and true for other numeric values.
>
> David
More information about the talk
mailing list