src/Number/Rational.php
public function toFloat(): float
    {
        $frac = $this->numerator / $this->denominator;
        $sum  = $this->whole + $frac;
        return $sum;
    }
public function toFloat(): float
    {
        $frac = $this->numerator / $this->denominator;
        $sum  = $this->whole + $frac;
        return $sum;
    }
public function toFloat ( ) : float { $ frac = $ this -> numerator / $ this -> denominator ; $ sum = $ this -> whole + $ frac ; return $ sum ; }
Rational number as a float

@return float
Rational number as a float