This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Addition/Subtraction of numbers.
- From: "Michael Kay" <michael dot h dot kay at ntlworld dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Fri, 25 Jan 2002 19:49:43 -0000
- Subject: RE: [xsl] Addition/Subtraction of numbers.
- Reply-to: xsl-list at lists dot mulberrytech dot com
> 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