From 42bc3020351ec3313698a8594294d24ae3166e35 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Thu, 9 Jan 2025 15:32:31 +0100 Subject: [PATCH] Fix rounding issue in `CurrencyFormField` --- .../lib/system/form/builder/field/CurrencyFormField.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] -- 2.20.1