|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2019-09-18 19:42 UTC] candace dot camarillo at vacasa dot com
Description: ------------ --- From manual page: https://php.net/function.money-format --- Running money_format() with the number 2040.33 returns a string with 2040.32. Other numbers seem to work. I have not iterated through others to determine which cause the problem. Playing with locale and other flags makes no impact on the problem. Test script: --------------- echo money_format('%i', 2040.33); // returns '2040.32' Expected result: ---------------- '2040.33' Actual result: -------------- '2040.32' PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 23:00:01 2025 UTC |
Adding round(,2) to the number gives the same problem: echo money_format('%i', round(2040.33, 2)) // '2040.32'