FixedDecimal.fromUnscaled

FixedDecimal fromUnscaled(long coefficient, ubyte scale) static @safe pure

Builds a value from unscaled integer parts.

Parameters

coefficientthe unscaled two's-complement coefficient; its magnitude must fit the precision.
scalefraction digit count. Runtime-scale forms accept any 0..precision; fixed-scale forms require exactly their Scale (use atScale to convert).

Returns

The constructed value.

Throws

FixedDecimalException on precision overflow or scale mismatch.