Subject: Re: [xsl] Comparing numbers with different precisions From: David Carlisle <davidc@xxxxxxxxx> Date: Thu, 09 Feb 2012 09:40:53 +0000 |
Hi!
I've a slightly awkward comparison, where I have two numbers of differing precisions, and I want to regard them as the same if the less preicse is the more precise rounded down to the same precision.
Examples are: 17.166666666666668 ~= 17.1666666666667 and 8.333333333333334 ~= 8.33333333333333
Unfortunately, the precision is not always the same for all the numbers I'm trying to compare.
I just wondered if anyone on this list had done anything similar, and had a good way of doing it, while I try and figure out a suitable way to do it.
Yours,
Clint Redwood.
________________________________________________________________________ The Numerical Algorithms Group Ltd is a company registered in England and Wales with company number 1249803. The registered office is: Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Comparing numbers with differ, Clint Redwood | Thread | RE: [xsl] Comparing numbers with di, Clint Redwood |
Re: [xsl] Rule of thumb: Are XPath , David Carlisle | Date | RE: [xsl] Comparing numbers with di, Clint Redwood |
Month |