diff --git a/src/Coin.php b/src/Coin.php index 2a30789..2a09501 100644 --- a/src/Coin.php +++ b/src/Coin.php @@ -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));