carbon v1.5.4 (2015-09-23T08:11:56Z)
Home
Dub
Repo
Rational.opBinary
carbon
rational
Rational
operator
auto
opBinary
(Rational!U r)
auto
opBinary
(U v)
struct
Rational
(T)
const
auto
opBinary
(
string
op
U
)
(
in
U
v
)
if
(
!
isRationalType
!
U
&&
isLikeInt
!
U
&&
!
find
(["+", "-", "*", "/", "%", "^^"],
op
).
empty
)
if
(
isLikeInt
!
T
&&
!
isFloatingPoint
!
T
)
Meta
Source
See Implementation
carbon
rational
Rational
constructors
this
functions
opAssign
opBinary
opBinaryRight
opCast
opCmp
opEquals
opOpAssign
opUnary
toString
properties
den
num
reciprocal
static functions
init
operator