toRat method

  1. @override
Rat toRat()
override

Implementation

@override
Rat toRat() => (getLower().value + getUpper().value) / Rat.fromInt(2);