[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: XPath: comparison of -0.0e0 and +0.0e0

Subject: Re: XPath: comparison of -0.0e0 and +0.0e0
From: Stefan Krause <stf@xxxxxxxx>
Date: Sun, 19 Jun 2011 23:08:33 +0200
Re:  XPath: comparison of -0.0e0 and +0.0e0
> [] 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@xxxxxxxx> 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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.