Re: C: how to check if the float is not a char
Use float.TryParse() to see if the value is a float. If it is, the function returns "true", if not, "false". You can then use an "if" statement to determine whether or not to actually go ahead with whatever you want to do with the float.
|