Formats the input value in value as a number. locale defines the country-specific formatting to be used, i.e. in particular the decimal separator to be used.

If the value passed in value cannot be interpreted as a number, the original value will be returned unchanged. will be returned.