diff --git a/src/BigRational.php b/src/BigRational.php index 9f7ccae..4625781 100644 --- a/src/BigRational.php +++ b/src/BigRational.php @@ -429,7 +429,8 @@ public function toInt() : int */ public function toFloat() : float { - return $this->numerator->toFloat() / $this->denominator->toFloat(); + $simplified = $this->simplified(); + return $simplified->numerator->toFloat() / $simplified->denominator->toFloat(); } /**