toDecimal

fnFixedDecimal!S toDecimal(S, I, int Bits)(FixedBinary!(I, Bits) value) @safe pure

Converts exactly from binary to decimal fixed point. This is a free function (also callable with UFCS); neither family needs to depend on conversion members in the other. The decimal family's own parse enforces its precision. Allocates the exact decimal text.

Parameters

Sdecimal storage (byte through long, or Int128).
valuebinary value to convert exactly.

Returns

the exact value as a FixedDecimal!S.

Throws

FixedDecimalException if the decimal storage is too narrow.