Skip to content

Commit

Permalink
Return int if scale = 0
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet committed Feb 22, 2020
1 parent f6f6a60 commit 0bdda70
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -282,7 +282,7 @@ private function round($number)
break;
}

$number /= $roundingCoef;
$number = 1 === $roundingCoef ? (int) $number : $number / $roundingCoef;
}

return $number;
Expand Down

0 comments on commit 0bdda70

Please sign in to comment.