void setDefaultFixedPoint(size_t fixedPoint)

Sets default value of fixed point positon for all new Decimal structures.

size_t getDefaultFixedPoint()

Gets current value of fixed point position by default. If the value was not changed by setDefaultFixedPoint, the value is 18.

Decimal toDecimal(T)(T value)

Transforms number or string to Decimal.

alias D = Decimal

Short alias for main structure.

Decimal exp(Decimal x)

Calculates e^x for Decimal.

real ln(real x)

Calculates the natural logarithm x (for real). The precision is 18 decimal places.

Decimal ln(Decimal x)

Calculates the natural logarithm x of the Decimal type.

Decimal log(Decimal b, Decimal a)

Calculates the logarithm.

Parameters

b

Decimal value

a

base of the logarithm

Decimal pow(Decimal x, ulong y)

Returns the value of x raised to the power of y.

Parameters

x

Decimal raised to a power

y

exponent of the ulong type

Decimal pow(Decimal x, Decimal y)

Returns the value of x raised to the power of y.

Parameters

x

Decimal raised to a power

y

Decimal exponent

Public imports