The OpenD Programming Language

CustomFloat.opUnary

Convert the CustomFloat to a real and perform the relevant operator on the result

struct CustomFloat(uint precision, uint exponentWidth, CustomFloatFlags flags, uint bias)
real
opUnary
(
string op
)
()
if (
__traits(compiles, mixin (op ~ `(get!real)`)) ||
op == "++"
||
op == "--"
)
if (
isCorrectCustomFloat(precision, exponentWidth, flags)
)

Meta