So I am accepting input from the user for a program I am working on. I would like to make it robust and be able to handle the case where somebody puts a comma in the dollar amount, for example $40,000. My program can handle input with either $40000 or 40000 but the comma makes it barf. Is there any easy way to parse this out so that I get a float value of 40000 from $40,000?