Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Xpath Query to get sign of a number

1 view
Skip to first unread message

Sameer

unread,
Jan 3, 2005, 6:57:03 PM1/3/05
to
Hi,

How to write a XPath query to obtain the sign of a number. The query should
return either a '+' or '-' sign. I am using the XPathNavigator class to get
data from the XML string using the XPath Query.

Any help or suggestions would be highly appreciated.

Regards
Sameer

Dimitre Novatchev

unread,
Jan 6, 2005, 3:46:31 AM1/6/05
to
Use:

substring('-+', ($v>=0)+1, 1 )

where $v contains the number.


Cheers,
Dimitre Novatchev.


"Sameer" <Sam...@discussions.microsoft.com> wrote in message
news:0346D791-54CF-4957...@microsoft.com...

0 new messages