Hi everyone, I am trying to write a function that can help me differenciate between a number and another character. I read about several ways to do this and I have tried severals but I have no luck. I thought I was going to be able to this code I wrote last night. However, I can't get inside the if statements. Any value returns the else condition "This is a number".
I am using Visual C++ 2008. Any help would be appreciated.
You cannot enter valid floating point number and expect to not be a number. A floating point value is not a number when the bit pattern is a meaningless encoding for the particular type of number.