toDouble

Gets the rational value as type double. Will cause a divide-by-zero error if the denominator is 0.

open fun toDouble(): Double