Subject: Re: [xsl] XPath: comparison of 0.0e0 and +0.0e0 From: "Imsieke, Gerrit, letex" <gerrit.imsieke@xxxxxxxxx> Date: Mon, 20 Jun 2011 00:17:10 +0200 
[b&] Out of interest, why do you need to distinguish them?
Because atan2(y,x) treats them different, see [1]. I try to implement this behavior in XSLT 2.0.
The expression math:atan2(+0.0e0, 0.0e0) returns 0.0e0. The expression math:atan2(+0.0e0, 0.0e0) returns math:pi().
The expression math:atan2(0.0e0, 0.0e0) returns 0.0e0. The expression math:atan2(0.0e0, 0.0e0) returns math:pi().
The expression math:atan2(+0.0e0, +0.0e0) returns 0.0e0. The expression math:atan2(+0.0e0, 0.0e0) returns 0.0e0. The expression math:atan2(0.0e0, +0.0e0) returns math:pi(). The expression math:atan2(0.0e0, 0.0e0) returns math:pi().
Current Thread 


< Previous  Index  Next > 

Re: [xsl] XPath: comparison of 0.0, Stefan Krause  Thread  Re: [xsl] XPath: comparison of 0.0, Stefan Krause 
Re: [xsl] XPath: comparison of 0.0, Michael Kay  Date  Re: [xsl] XPath: comparison of 0.0, Stefan Krause 
Month 