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: A - B


pcoustillas wrote:
> hi, how could i do A-B when A or B does not exist or is absent... 
> because without a test i recieve "NaN". Thanks.

NaN is the correct answer, if A or B cannot both be converted to numbers.

What do you want that would be different than this? Do you want non-numbers
like empty strings and empty node-sets to be treated as zeroes?

 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]