FixedPoint

M.N fixed point integer. Only signed integers are supported. Only supports basic arithmetic. If M + N > 32, then wide integers are used and this will likely be slow.

struct FixedPoint (
int M
int N
) {
value_t value;
}

Constructors

this
this(U x)

Construct with an assignable value.

Members

Functions

opAssign
FixedPoint opAssign(U x)

Construct with an assignable value.

Bugs

No proper rounding.

Meta