You should be checking the decimal character of the locale and in some locale its ,

Now actual test case should be when you have the data entered in the locale should be consistent.