RationalEq
scalus.cardano.onchain.plutus.prelude.RationalEq
object RationalEq
Value equality for Rational by cross-multiplication: a/b == c/d iff a*d == c*b.
Provided as a named operation because Rational has no Eq instance (its equality is not structural). Use this instead of === / ==.
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
RationalEq.type
Members list
In this article