This commit is contained in:
Laurent Destailleur
2025-12-05 11:57:45 +01:00
parent 4f6c7f6168
commit c4dc7b6fdb

View File

@@ -1241,7 +1241,7 @@ function GETPOSTINT($paramname, $method = 0)
*/
function GETPOSTFLOAT($paramname, $rounding = '', $option = 2)
{
// 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.)
// price2num() can be used to round to an expected accuracy and/or 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, $option);
}