BigFixed

A struct representing Fixed point number.

Constructors

this
this(T x, size_t Q)

Construct BigFixed from a built-in integral type

this
this(T x, size_t Q)

Construct BigFixed from BigInt

Members

Functions

convertQ
BigFixed convertQ(size_t newQ)
opAssign
BigFixed opAssign(T x)

Assignment from built-in integer types

opAssign
BigFixed opAssign(T x)

Assignment from another BigFixed

opBinary
BigFixed opBinary(T y)

Implements binary operators between BigFixed

opBinary
BigFixed opBinary(T y)

Implements binary operators between BigInt

opBinary
BigFixed opBinary(T y)

Implements binary operators between Integer

opBinaryRight
BigFixed opBinaryRight(T y)

Implements binary operators of the form Integer op BigFixed

opCmp
int opCmp(BigFixed y)
int opCmp(T y)

Implements 3-way comparisons of BigFixed with BigFixed or BigFixed with built-in integers.

opEquals
bool opEquals(BigFixed y)

Implements BigFixed equality test

opOpAssign
BigFixed opOpAssign(T y)

Implements assignment operators from BigFixed of the form BigFixed op= BigFixed

opOpAssign
BigFixed opOpAssign(T y)

Implements assignment operators from built-in integers of the form BigFixed op= Integer

opOpAssign
BigFixed opOpAssign(T y)

Implements bitwise assignment operators from BigInt of the form BigFixed op= BigInt

opUnary
BigFixed opUnary()

Implements BigFixed unary operators.

toDecimalString
string toDecimalString(size_t decimal_digits)

Convert the BigFixed to string

toHash
size_t toHash()

Implement toHash so that BigFixed works properly as an AA key.

Properties

fractional_bits
size_t fractional_bits [@property getter]

the number of fractional bits

resolution
BigFixed resolution [@property getter]

Minimum number that can be represented greater than 0

Meta