diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index e87b37a0a96..f5190fe9bda 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -970,7 +970,7 @@ function GETPOSTINT($paramname, $method = 0) function GETPOSTFLOAT($paramname, $rounding = '') { // price2num() is used to sanitize any valid user input (such as "1 234.5", "1 234,5", "1'234,5", "1ยท234,5", "1,234.5", etc.) - return (float) price2num(GETPOST($paramname), $rounding); + return (float) price2num(GETPOST($paramname), $rounding, 2); }