src/Number/Rational.php
public function equals(Rational $rn): bool
    {
        return $this->whole       == $rn->whole        &&
               $this->numerator   == $rn->numerator    &&
               $this->denominator == $rn->denominator;
    }
public function equals(Rational $rn): bool
    {
        return $this->whole       == $rn->whole        &&
               $this->numerator   == $rn->numerator    &&
               $this->denominator == $rn->denominator;
    }
public function equals ( Rational $ rn ) : bool { return $ this -> whole == $ rn -> whole && $ this -> numerator == $ rn -> numerator && $ this -> denominator == $ rn -> denominator ; }
Test for equality

Two normalized RationalNumbers are equal IFF all three parts are equal.

@param Rational $rn

@return bool
Test for equality