Skip to content

Commit

Permalink
fix numbers format
Browse files Browse the repository at this point in the history
  • Loading branch information
Wavemix SpA committed Sep 12, 2018
1 parent 384dbb0 commit 29a75d7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Sbif.php
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,8 @@ private function validateDate(Carbon $date)
private function normalizeNumber($number)
{
$number = str_replace(".", "", $number);

return (float)str_replace(",", ".", $number);
$number = str_replace(",", ".", $number);

return (float)$number;
}
}

0 comments on commit 29a75d7

Please sign in to comment.