the convert function expects the 3rd parameters is the number of decimal to round
public function convert($from = null, $to, $int, $round = null, $date = null) {...}
but it doesn't work if we want to round the result with precision = 0
pls have a look at this line
https://github.com/danielme85/Laravel-CConverter/blob/master/src/Currency.php#L347 if ($round) { $result = round($result, $round); }
the condition checking will lead to fail if the $round parameter passed to the convert function is 0
the convert function expects the 3rd parameters is the number of decimal to round
public function convert($from = null, $to, $int, $round = null, $date = null) {...}
but it doesn't work if we want to round the result with precision = 0 pls have a look at this line https://github.com/danielme85/Laravel-CConverter/blob/master/src/Currency.php#L347
if ($round) { $result = round($result, $round); }
the condition checking will lead to fail if the $round parameter passed to the convert function is 0