phobos-next v0.5.1 (2022-12-21T17:07:30Z)
Home
Dub
Repo
Rational.opCast
nxt
rational
Rational
Convert to floating point representation.
F
opCast
()
struct
Rational
(SomeIntegral)
public 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.