Hello,
I need to distinguish between number (float) and other non number characters.
I was trying to use this:
and whatever I type I receive "Segmentation fault".Code:#include <stdio.h> #include <ctype.h> float Ax; ... scanf("%f\n",&Ax); if (isdigit(Ax)) {....}
How can I detect that the float input is correct? Is there any built in function?
Thank you...