Fix equals
This commit is contained in:
parent
38f76de228
commit
83445da8b2
|
@ -60,7 +60,7 @@ class Decimal
|
||||||
|
|
||||||
function equals($v): bool
|
function equals($v): bool
|
||||||
{
|
{
|
||||||
return (new Decimal($v))->getSource() == $this->source;
|
return (new Decimal($v))->getSource() == new Decimal($this->source);
|
||||||
}
|
}
|
||||||
|
|
||||||
function toDecimalPlaces(int $dp)
|
function toDecimalPlaces(int $dp)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user