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

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

toDecimalString
string toDecimalString(size_t decimal_digits)

Convert the BigFixed to string

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