phobos-next ~master (2024-03-19T05:49:32Z)
Home
Dub
Repo
Rational.opCast
nxt
rational
Rational
Convert to floating point representation.
F
opCast
()
struct
Rational
(SomeIntegral)
const
F
opCast
(
F
)
(
)
if
(
isFloatingPoint
!
F
)
if
(
isIntegerLike
!
SomeIntegral
)
I
opCast
()
Rational
!(
SomeIntegral
)
opBinary
(Rhs that)
Rational
!(
SomeIntegral
)
opBinary
(Rhs that)
Meta
Source
See Implementation
nxt
rational
Rational
functions
inverse
invert
opAssign
opBinary
opBinaryRight
opCast
opCmp
opEquals
opOpAssign
opUnary
toString
properties
denominator
fractionPart
integerPart
numerator
Convert to floating point representation.