Hi Ankit, the problem is with float rounding ...
sum((<a>5923.17</a>,<a>5956.29</a>,<a>5989.28</a>)) = 17868.739999999998
gives true() on my machine. As usual with floats you should probably apply a rounding policy to compare for exact equality. Regards, Marco.
On 12/03/2015 15:01, ankit kumar wrote:
Hi,
I am trying to evaluate this expression, it is supposed to give TRUE but, it is giving false.
sum((<a>5923.17</a>,<a>5956.29</a>,<a>5989.28</a>)) = <a>17868.74</a>
But, for this expression it is giving as expected.
sum((<a>5922.78</a>,<a>-5955.78</a>,<a>5988.74</a>)) = <a>5955.74</a>
Thanks
Ankit