toDouble method

double toDouble()

This Rational as a double.

Implementation

double toDouble() => _numerator / _denominator;