Piotrekk <Pi*************@gmail.com> wrote:

Nope. I am still gettin

1,1920929E-07

Do you think it might be caused by C# 2005?

I thought 1,1920929E-07 was what you expected to get. After all, you

wrote:

<quote>

My epsilon is: 1,1920929E-07 - true due to IEEE standards

</quote>

Is that not the value you're expecting?

Note that you're only using 32-bit floating point values here. If you

use doubles, you'll get 2.22044604925031E-16. Is that what you were

expecting? I'm not sure where you got the value of 0.0388556346 which

you mentioned in your original post - could you elaborate on that?

Note that your idea of epsilon (the smallest floating point such that

adding it to 1 gives a result distinct to 1) is not the same as the

values of Double.Epsilon or Single.Epsilon, each of which is the

smallest strictly positive value for that type. That's a much smaller

number in each case.

Given the definition of machine epsilon given at

http://www.netlib.org/lapack/lug/node74.html, I'm not sure how the

routine you've given is meant to be calculating it - I have to say

though, I haven't looked at xLAMCH myself, and possibly your code is

based on that.

--

Jon Skeet - <sk***@pobox.com>

http://www.pobox.com/~skeet Blog:

http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too