From: Marcel Werk Date: Thu, 9 Jan 2025 14:32:31 +0000 (+0100) Subject: Fix rounding issue in `CurrencyFormField` X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=42bc3020351ec3313698a8594294d24ae3166e35;p=GitHub%2FWoltLab%2FWCF.git Fix rounding issue in `CurrencyFormField` --- diff --git a/wcfsetup/install/files/lib/system/form/builder/field/CurrencyFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/CurrencyFormField.class.php index 49b9b65b95..ee46fb54d5 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/CurrencyFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/CurrencyFormField.class.php @@ -23,7 +23,7 @@ class CurrencyFormField extends AbstractNumericFormField return 0; } - return \floor($this->getValue() * 100); + return \round($this->getValue() * 100); } #[\Override]