Here is some more good advice for a programming contest, some friends of mine got burned on this part
Do not try to do equality on floats. Instead declare a variable epsilon that is very small .0001 or less. Then when you want to see if two floats are equal see if they are within +- epsilon of eachother.
|