Fix rounding issue in `CurrencyFormField` 6.1
authorMarcel Werk <burntime@woltlab.com>
Thu, 9 Jan 2025 14:32:31 +0000 (15:32 +0100)
committerMarcel Werk <burntime@woltlab.com>
Thu, 9 Jan 2025 14:32:31 +0000 (15:32 +0100)
wcfsetup/install/files/lib/system/form/builder/field/CurrencyFormField.class.php

index 49b9b65b9536aa259cd0a59812c4ee3160542d2b..ee46fb54d5489845e22e7e787776d6bb92d818ed 100644 (file)
@@ -23,7 +23,7 @@ class CurrencyFormField extends AbstractNumericFormField
             return 0;
         }
 
-        return \floor($this->getValue() * 100);
+        return \round($this->getValue() * 100);
     }
 
     #[\Override]