(Not an Advanced question at all)
Testing for equality, with floating point, is almost always wrong. It is an inexact data type, so exact equality test generally does not do what you want.
Therefore you have two mistakes: -
using float constants (F suffix) with double typeworrying about exact equality tests in floating-point [ September 25, 2006: Message edited by: Peter Chase ]