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.

Constructors

this
this(U x)

Construct with an assignable value.

Members

Aliases

value_t
alias value_t = TypeNeeded!(N + M)
Undocumented in source.

Functions

opAssign
FixedPoint opAssign(U x)

Construct with an assignable value.

opAssign
FixedPoint opAssign(U x)
Undocumented in source. Be warned that the author may not have intended to support it.
opAssign
FixedPoint opAssign(U x)
Undocumented in source. Be warned that the author may not have intended to support it.
opBinary
FixedPoint opBinary(U x)
Undocumented in source. Be warned that the author may not have intended to support it.
opBinaryRight
FixedPoint opBinaryRight(U x)
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
U opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
U opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCmp
int opCmp(FixedPoint other)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(U other)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(U other)
Undocumented in source. Be warned that the author may not have intended to support it.
opOpAssign
FixedPoint opOpAssign(U x)
Undocumented in source. Be warned that the author may not have intended to support it.
opOpAssign
FixedPoint opOpAssign(U x)
Undocumented in source. Be warned that the author may not have intended to support it.
opUnary
FixedPoint opUnary()
Undocumented in source. Be warned that the author may not have intended to support it.
opUnary
FixedPoint opUnary()
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

value
value_t value;
Undocumented in source.

Parameters

M

number of bits before the mark, M > 0

N

number of bits after the mark, N > 0

Bugs

No proper rounding.

Meta