[xquery-talk] Literal NaN

David Lee dlee at calldei.com
Mon Feb 28 10:28:09 PST 2011


Micheal Kay says →

You can construct it using xs:double('NaN') or xs:float('NaN')
=========================

But you still can’t compare it to another NaN (and get true).
So what is the ‘best’ way to determine if a numeric is a NaN ?
So far I’ve only found     
       xs:string(value) eq ‘NaN’
       
       Ok this works, but I’d still vote for a 
       
        fn:isNaN()
       


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








More information about the talk mailing list