[xquery-talk] Literal NaN

David Lee dlee at calldei.com
Mon Feb 28 11:46:14 PST 2011


Ah !!! That's creative !
Thanks.


----------------------------------------
David A. Lee
dlee at calldei.com
http://www.xmlsh.org


-----Original Message-----
From: talk-bounces at x-query.com [mailto:talk-bounces at x-query.com] On Behalf
Of David Carlisle
Sent: Monday, February 28, 2011 11:37 AM
To: David Lee
Cc: talk at x-query.com
Subject: Re: [xquery-talk] Literal NaN


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


________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 
________________________________________________________________________
_______________________________________________
talk at x-query.com
http://x-query.com/mailman/listinfo/talk



More information about the talk mailing list