I understand I can use the function isdigit() to check if a char has the value 0-9, but what about floats? I have a float that I would like to verify contains only digits and the ".". Is there some function that will do this?
I understand I can use the function isdigit() to check if a char has the value 0-9, but what about floats? I have a float that I would like to verify contains only digits and the ".". Is there some function that will do this?
I don't think so (could be wrong though) but you can make your own easily.
"The most common form of insanity is a combination of disordered passions and disordered intellect with gradations and variations almost infinite."
ispunct will check for punctuation characters
Regards,
Mario Figueiredo
Using Borland C++ Builder 5
Read the Tao of Programming
This advise was brought to you by the Comitee for a Service Packless World