On 11/30/06, teeshift <teeshift / gmail.com> wrote:
> I recently wrote a code and haven't been found the bug and start
> suspecting that it was
> the floating computation that causing the problem. I did a little
> experiement and found the
> following phenomena:
>
> I am using
>
> Linux source 2.6.15-27-386 #1 PREEMPT Sat Sep 16 01:51:59 UTC 2006 i686
> GNU/Linux
> Ubuntu is the OS.

See this writeup for some details on why this happens.
http://en.wikipedia.org/wiki/IEEE_754