It's not good here to test with a non-strict equality a null value, since `"" == null`, and so it would be impossible to omit the thousands separator in the formatted string.

Please use `isset($decPoint)` and `isset($separator)` here and in the following.