Revert "Replace IsValidNumber with IsBool for int/float query"

This reverts commit 7ad41ef827.
This commit is contained in:
lily 2025-10-06 06:55:50 +11:00
parent a950c86624
commit 34a6070190

View file

@ -75,7 +75,7 @@ int main(void) {
printf ("\nWould you like your accuracy as a float or as an int? Type 0 for float or 1 for int.\n");
scanf ("%s", input);
if (isbool(input)) {
if (isvalidnumber(input)) {
sscanf(input, "%d", &accuracytype);
} else {
printf ("Error! An invalid character was entered.\n");