Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
startailcoon committed Jun 30, 2024
1 parent c34f081 commit 6c83ad1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Coin.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function add(int|float $v) {
$v = sprintf('%f', $v);
}

if(is_float($v)) {
if(!is_int($v)) {
$precision = strlen(substr(strrchr($v, "."), 1));
$v = intval(str_replace(".", "", $v));

Expand Down

0 comments on commit 6c83ad1

Please sign in to comment.