Format and parse numbers depending on client locale.
Remove unused functions.