Fix StringUtil::formatDouble() for $maxDecimals != 2
authorTim Düsterhus <duesterhus@woltlab.com>
Mon, 24 Jul 2023 07:26:21 +0000 (09:26 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Mon, 24 Jul 2023 07:26:21 +0000 (09:26 +0200)
commitfa1401b32bf75f9a5f0df679b1e288a75e011063
tree123c3288d3dd28b5306d3ba11b9ee95d3793cd68
parent97c0cdfa6ae08aff28d9d4ab8c09d88561d80215
Fix StringUtil::formatDouble() for $maxDecimals != 2

NumberFormatter performs rounding itself, thus there is no need to round
manually. This also changes the recommended alternative for this use case that
is mentioned in the doc comment.
wcfsetup/install/files/lib/util/StringUtil.class.php