I'm doing some error handling for argv[1] user inputs, however I don't know how to format a number that has either only a comma or both comma and decimal to be a number without either.
float op2 = atof(argv[1]);
given the conversion above:
1,00 returns 1 (I want 100)
3,000.9 returns 3 (I want 3000.9)
Any idea? I'm still a beginner. Thank you