/** * {@inheritdoc} */ public function subDecimal(Decimal $x, $scale = null) { if ($x->isInfinite()) { return $x->isPositive() ? DecimalInfinite::infNegative() : DecimalInfinite::infPositive(); } return new self(\bcsub($this->toNative(), $x->toNative(), $this->scale($scale))); }