Skip to content

Conversation

xaviermdq
Copy link

Modified float to string casting conversion in several methods to always use '.' as decimal separator for PHP < 8.0.0
From PHP manual:
"As of PHP 8.0.0, the decimal point character is always '.'. Prior to PHP 8.0.0, the decimal point character is defined in the script's locale (categoryLC_NUMERIC). See the setlocale() function."
I used setlocale but may be we can use sprintf or number_format. I'm not sure which is the best way to achieve this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant