toDouble method

double toDouble()

Converts this fraction to a double.

Implementation

double toDouble() => a / b;