BigFixed.opUnary

Implements BigFixed unary operators.

struct BigFixed
pure nothrow const
opUnary
(
string op
)
()
if (
op == "+" ||
op == "-"
||
op == "~"
)

Examples

immutable x = BigFixed(1, 10) / 2;

assert(+x == x);
assert(-x == BigFixed(-1, 10) / 2);
assert(~x == -x - x.resolution);

Meta