The OpenD Programming Language

Fp

Software floating point number.

Constructors

this
this(bool sign, long exponent, UInt!size normalizedCoefficient)
this
this(T value, bool normalize)

Constructs Fp from hardaware floating point number.

this
this(UInt!isize integer, bool normalizedInteger)
this(ulong value)
this
this(long value)
this
this(int value)
this
this(uint value)

Members

Functions

isInfinity
bool isInfinity()
isNaN
bool isNaN()
isSpecial
bool isSpecial()
opBinary
Fp!(max(size, rhsSize)) opBinary(Fp!rhsSize rhs)
opBinary
Fp!(max(size, rhsSize)) opBinary(Fp!rhsSize rhs)

Uses approximate division for now TODO: use full precision division for void when Fp division is ready

opCast
T opCast()
opCast
T opCast()
opCast
T opCast()
opEquals
bool opEquals(Fp rhs)
opOpAssign
Fp opOpAssign(Fp rhs)

Parameters

size

coefficient size in bits

Meta