Fp

Software floating point number.

Constructors

this
this(bool sign, Exp exponent, UInt!coefficientSize normalizedCoefficient)
this
this(T value, bool normalize)

Constructs Fp from hardaware floating point number.

this
this(UInt!size integer, bool normalizedInteger)

Members

Functions

opBinary
Fp opBinary(Fp rhs)
opCast
T opCast()
opCast
T opCast()
opCast
T opCast()
opOpAssign
Fp opOpAssign(Fp rhs)

Variables

coefficient
UInt!coefficientSize coefficient;
Undocumented in source.
exponent
Exp exponent;
Undocumented in source.
sign
bool sign;
Undocumented in source.

Parameters

coefficientSize

coefficient size in bits

Note: the implementation doesn't support NaN and Infinity values.

Meta