David_Marston@lotus.com wrote: > [XPath-negative-zero-multiply] Does the product of -0 and any non-zero > number equal -0? Does (-0)*0 equal -0? Does (-0)*(-0) equal 0? Does (-0) > div {any non-zero number} equal -0? The short answer is that according to IEEE 754, for both multiplication and division the rule is that if the result is not NaN, then the result is positive if and only if both operands have the same sign. See, eg http://java.sun.com/docs/books/jls/html/15.doc.html#5036 Thus the answers to your questions are: no, yes, yes, no. JamesReceived on Tuesday, 26 September 2000 01:38:08 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 10 August 2007 00:11:29 GMT