How can I check for a comma in a number?
Lets assume I have a string which represents a polynomial term that looks like this
string x = "x+1+5,54";
Now the user wants to put in and add a comma which will then be "x1+5,54," which is not a number anymore. How can I check this with an if ?
Something like if the last number already contains a comma don't append another one.