This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Addition/Subtraction of numbers.


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]