Documentation
Dlang.org
GyreD (source)
Rational.opCmp
eris
rational
Rational
Compares two rationals based on their reduced form.
int
opCmp
(const(Rational) rhs)
int
opCmp
(Z rhs)
struct
Rational
(Z)
pragma(
inline
) const
int
opCmp
(
Z
rhs
)
if
(
__traits(
isPOD
,
Z
)
)
int
opCmp
(R rhs)
eris
rational
Rational
constructors
this
functions
opAssign
opBinary
opBinaryRight
opCast
opCmp
opEquals
opUnary
properties
denominator
numerator
Compares two rationals based on their reduced form.