src/Amount.php
protected function comparesTo(AmountInterface $amount) {
    $this->validateOtherAmount($amount);

    return bccomp($this->getAmount(), $amount->getAmount(), static::BC_MATH_SCALE);
  }
protected function comparesTo(AmountInterface $amount) {
    $this->validateOtherAmount($amount);

    return bccomp($this->getAmount(), $amount->getAmount(), static::BC_MATH_SCALE);
  }
protected function comparesTo ( AmountInterface $ amount ) { $ this -> validateOtherAmount ( $ amount ) ; return bccomp ( $ this -> getAmount ( ) , $ amount -> getAmount ( ) , static :: BC_MATH_SCALE ) ; }
Compares this amount to another.

@param \Commercie\Money\AmountInterface $amount

@return int
-1, 0, or 1 if this amount is respectively less than, equal to, or more
than the other amount.
Compares this amount to another .