Skip to content

Commit

Permalink
Merge branch 'master' into 0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
prhost committed Apr 30, 2020
2 parents ed29cd2 + c385f01 commit 851eb14
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Helper/General.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ class General
{
public static function convertStringToFloat($value = ''): float
{
$value = str_replace('.', '', $value);
$value = str_replace(',', '.', $value);
return (float)preg_replace("/[^-0-9\.]/", "", $value);
}
Expand Down

0 comments on commit 851eb14

Please sign in to comment.