Add ability to set maximum number of accepted decimal places if it is different from the locale default and clean up fractional decimal length detection code and locale code.
Add ability to set maximum number of accepted decimal places if it is different from the locale default and clean up fractional decimal length detection code and locale code.

svn commit r14254

silverorange/swat,silverorange/swat