Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Decimal truncation without rounding [Thread Next] Re: Decimal truncation without roundingTo: NULL Date: 11/1/2006 8:31:00 PM
"swegele" <swegele@g...> wrote in message
news:1162417294.614224.225600@b......
>I have two values
> 0.07 and 0.086
>
> I am attemting to find the distance between the two numbers truncated
> to 2 decimal places. format-number(value,##.00) rounds the value.
>
> so .086 - .07 should give .01 but instead I get .02
substring(.086 - .07,1,4)
Cheers,
Dimitre Novatchev
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
