We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 931dd2b commit df530ceCopy full SHA for df530ce
src/Helper/General.php
@@ -7,6 +7,7 @@ class General
7
{
8
public static function convertStringToFloat($value = ''): float
9
10
+ $value = str_replace('.', '', $value);
11
$value = str_replace(',', '.', $value);
12
return (float)preg_replace("/[^-0-9\.]/", "", $value);
13
}
0 commit comments