If a and b are not infinite or NaN, then you've probably got 0 divided by 0, which gives NaN. You probably need to either modify your code so this never happens, or treat 0/0 as a special case. It all depends on what the purpose of your program is.
"I'm not back." - Bill Harding, Twister
Today you are you, that is turer than true. There is no one alive who is youer than you! - Seuss. Tiny ad: