note 126650 rejected from function.number-format by cmb
| From: | cmb@php.net | Date: | Wed, 01 Dec 2021 10:00:50 +0000 |
| Subject: | note 126650 rejected from function.number-format by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-217313@lists.php.net to get a copy of this message | ||
Note Submitter: sagittaracc at gmail dot com
----
Need to add an optional parameter named strip_trailing_zeros as false by default.
https://github.com/sagittaracc/number_format_with_strip_trailing_zeros
example
echo number_format(1.2340, 4, ' ', ',', true); // 1.234