Ejemplo n.º 1
0
 /**
  * {@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)));
 }