toDouble method
Returns this
as a double.
If the number is not representable as a double, an approximation is returned. For numerically large integers, the approximation may be infinite.
Implementation
double toDouble() => numerator / denominator;