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

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

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