xsl-list
[Top] [All Lists]

Re: [xsl] XPath: comparison of -0.0e0 and +0.0e0

2011-06-19 16:08:46
[…] 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.

Stefan

[1] http://www.w3.org/TR/xpath-functions-30/#func-atan2



Am 19.06.2011 um 23:02 schrieb Andrew Welch:

On 19 June 2011 21:13, Stefan Krause <stf(_at_)snafu(_dot_)de> wrote:
Hello,

how can I distinguish -0.0e0 from +0.0e0? The comparison operators (eq, lt, 
gt) are not supposed to to the job, and I am not sure if comparing string 
values is the right way. Any other suggestions?



I think treating them as strings is the only way...  Out of interest,
why do you need to distinguish them?


-- 
Andrew Welch
http://andrewjwelch.com

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--