gfm



struct  FixedPoint(int M, int N);

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.

Parameters
M number of bits before the mark, M > 0
N number of bits after the mark, N > 0
Known Bugs
No proper rounding.

pure nothrow @nogc this(U)(U x);

Construct with an assignable value.


pure nothrow @nogc ref FixedPoint  opAssign(U)(U x) if (is(U : FixedPoint));

Construct with an assignable value.


pure nothrow @nogc FixedPoint!(M, N)  abs(int M, int N)(FixedPoint!(M, N) x);

 abs() function for fixed-point numbers.