public function equals(Number $comparedNumber)
    {
        if ($this->value() !== $comparedNumber->value() ||
            !$this->getNumberSystem()->equals($comparedNumber->getNumberSystem()))  {
            return false;
        }

        return true;
    }
public function equals(Number $comparedNumber)
    {
        if ($this->value() !== $comparedNumber->value() ||
            !$this->getNumberSystem()->equals($comparedNumber->getNumberSystem()))  {
            return false;
        }

        return true;
    }
public function equals ( Number $ comparedNumber ) { if ( $ this -> value ( ) !== $ comparedNumber -> value ( ) || ! $ this -> getNumberSystem ( ) -> equals ( $ comparedNumber -> getNumberSystem ( ) ) ) { return false ; } return true ; }
Compare two numbers.

@param Number $comparedNumber

@return bool
Compare two numbers .