Comparing floats with == operator isn't really a good idea, even worse if you save the boolean result in a uint32.
Any reason why you want to store a boolean value into a uint32 ?