Fix equals

This commit is contained in:
Amast 2019-12-12 14:15:02 +08:00
parent 38f76de228
commit 83445da8b2

View File

@ -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)