Subject: RE: Addition/Subtraction of numbers.
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Fri, 25 Jan 2002 19:49:43 -0000
|
> I have the understanding that the XPath number() function
> will return the string 'NaN' if the parameter passed in is
> not a number. Though, at a lower level, won't the same
> function called twice with identical parameter(s) return the
> same thing? So, when would your test of "number($t1) =
> number($t1)" fail?
When number($t1) is NaN, because (as defined in the IEEE standard) NaN=NaN
is false.
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|