Skip to content
This repository has been archived by the owner on May 17, 2022. It is now read-only.

Commit

Permalink
removendo zeros não permitidos
Browse files Browse the repository at this point in the history
  • Loading branch information
DaviMenezes committed Mar 21, 2019
1 parent 80504cd commit 225ffe5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/general.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function money($dollar = 0)
{
$dollar = empty($dollar) ? 0 : $dollar;
$dollar = str_replace([',', '.'], '', $dollar);
$dollar = str($dollar)->removeLeft('00')->str();
$dollar = str($dollar)->removeLeft('00')->removeLeft('0')->str();
$money = Money::USD($dollar);
return $money;
}

0 comments on commit 225ffe5

Please sign in to comment.