![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Xpath Query to get sign of a number [Thread Next] Re: Xpath Query to get sign of a numberTo: NULL Date: 1/6/2005 7:47:00 PM Use:
substring('-+', ($v>=0)+1, 1 )
where $v contains the number.
Cheers,
Dimitre Novatchev.
"Sameer" <Sameer@d...> wrote in message
news:0346D791-54CF-4957-91D3-CAD55320C3AE@m......
> 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
| ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
