carbon v1.8.0 (2018-09-02T09:54:37Z)
Home
Dub
Repo
Rational.this
carbon
rational
Rational
ditto
this
(U n)
this
(U n, V d, bool nonReduce)
struct
Rational
(T)
this
(
U
V
)
(
in
U
n
,
in
V
d
,
bool
nonReduce
= false
)
if
(
isAssignable
!(
T
,
const
(
U
)) &&
isAssignable
!(
T
,
const
(
V
))
)
if
(
isLikeInt
!
T
&&
!
isFloatingPoint
!
T
)
typeof
(
this
)
init
()
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
ditto