Fixes #6647

Fixes #6647
I would take out this second one, or specify that it's en-US locale. This is a valid float in many locales. Thanks for catching that I didn't set the error.