Closed cracksalad closed 1 year ago
Can we use number_format
instead?
Can we use
number_format
instead?
You are totally right. number_format
is a much easier solution. I adjusted it.
:tada: This PR is included in version 4.17.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:
When using somtehing like
setlocale(LC_ALL, 'de_DE');
the functionsprintf('%.1f, ...)'
will use a comma for decimal separation. The functionis_numeric()
will outputfalse
for strings containing a comma. Thereby I had to replace the decimal separator of the used locale with a dot.