Documentation
Dlang.org
GyreD (source)
Rational.opCmp
eris
rational
Rational
Compares two rationals based on their reduced form.
int
opCmp
(const(Rational) rhs)
struct
Rational
(Z)
pragma(
inline
) const
int
opCmp
(
const
(
Rational
)
rhs
)
if
(
__traits(
isPOD
,
Z
)
)
int
opCmp
(Z rhs)
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.