diff --git a/src/Utils/Decimal.php b/src/Utils/Decimal.php index 91fd371..7ec003c 100644 --- a/src/Utils/Decimal.php +++ b/src/Utils/Decimal.php @@ -60,7 +60,7 @@ class Decimal function equals($v): bool { - return (new Decimal($v))->getSource() == $this->source; + return (new Decimal($v))->getSource() == new Decimal($this->source); } function toDecimalPlaces(int $dp)