Re: Linux gcc vs Windows Studo Net 2005
Posted by
Luigi Ballabio on
URL: http://quantlib.414.s1.nabble.com/Linux-gcc-vs-Windows-Studo-Net-2005-tp4381p4386.html
On 2/3/06, Tamas R Sashalmi <
[hidden email]> wrote:
> so I've checked again. The differnces are around:
> 1.11022e-16
> so very small.
>
> Also there is a second solution for this (if you don't like the tolerance)
I do like setting a tolerance---checking floating-point values for
strict equality is not a good idea in general---but 1e-7 had me
worried. If we had needed such a large value, it might have pointed at
some problem in the implementation. 1e-15 is ok, I will update the
test shortly.
Thanks,
Luigi