The Open
D
Programming Language
Learn
Language
Library
Contribute
Blog
CustomFloat.opCmp
std
numeric
CustomFloat
Convert the CustomFloat to a real and perform the relevant operator on the result
struct
CustomFloat
(uint precision, uint exponentWidth, CustomFloatFlags flags, uint bias)
int
opCmp
(
T
)
(
auto
ref
T
b
)
if
(
__traits(
compiles
, cast(
real
)
b
)
)
if
(
isCorrectCustomFloat
(
precision
,
exponentWidth
,
flags
)
)
Meta
Source
See Implementation
std
numeric
CustomFloat
aliases
opCast
constructors
this
functions
opAssign
opBinary
opBinaryRight
opCmp
opOpAssign
opUnary
manifest constants
mant_dig
max_exp
min_exp
properties
dig
epsilon
get
im
infinity
max
max_10_exp
min_10_exp
min_normal
nan
re
templates
toString
Convert the CustomFloat to a real and perform the relevant operator on the result