RationalExt extension

Extensions on Rational.

on
  • Rational

Properties

hasFinitePrecision bool
Returns true if this Rational has a finite precision.
no setter

Methods

toDecimal({int? scaleOnInfinitePrecision, BigInt toBigInt(Rational)?}) Decimal
Returns a Decimal corresponding to this.