public function subtract(Fraction $fraction)
    {
        $numerator = ($this->getNumerator() * $fraction->getDenominator())
            - ($fraction->getNumerator() * $this->getDenominator());

        $denominator = $this->getDenominator()
            * $fraction->getDenominator();

        return new static($numerator, $denominator);
    }
public function subtract(Fraction $fraction)
    {
        $numerator = ($this->getNumerator() * $fraction->getDenominator())
            - ($fraction->getNumerator() * $this->getDenominator());

        $denominator = $this->getDenominator()
            * $fraction->getDenominator();

        return new static($numerator, $denominator);
    }
public function subtract ( Fraction $ fraction ) { $ numerator = ( $ this -> getNumerator ( ) * $ fraction -> getDenominator ( ) ) - ( $ fraction -> getNumerator ( ) * $ this -> getDenominator ( ) ) ; $ denominator = $ this -> getDenominator ( ) * $ fraction -> getDenominator ( ) ; return new static ( $ numerator , $ denominator ) ; }
Subtract a given fraction from this fraction

@author Tom Haskins-Vaughan <tom@tomhv.uk>
@since  0.1.0

@param Fraction $fraction

@return Fraction
Subtract a given fraction from this fraction