note 126650 added to function.number-format
| From: | sagittaracc at gmail dot com | Date: | Wed, 01 Dec 2021 08:58:19 +0000 |
| Subject: | note 126650 added to function.number-format | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-217312@lists.php.net to get a copy of this message | ||
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
----
Server IP: 45.112.84.4
Probable Submitter: 45.112.85.242 (proxied: 194.190.48.196)
----
Manual Page -- https://php.net/manual/en/function.number-format.php
Edit -- https://main.php.net/note/edit/126650
Del: integrated -- https://main.php.net/note/delete/126650/integrated
Del: useless -- https://main.php.net/note/delete/126650/useless
Del: bad code -- https://main.php.net/note/delete/126650/bad+code
Del: spam -- https://main.php.net/note/delete/126650/spam
Del: non-english -- https://main.php.net/note/delete/126650/non-english
Del: in docs -- https://main.php.net/note/delete/126650/in+docs
Del: other reasons-- https://main.php.net/note/delete/126650
Reject -- https://main.php.net/note/reject/126650
Search -- https://main.php.net/manage/user-notes.php