FixedDecimal.atScale

auto atScale(int S2)() if (S2 >= 0 && S2 <= precisionOf!I) const @safe pure

Converts to a fixed-scale type (checked).

Parameters

S2target compile-time scale in 0..precision.

Returns

FixedDecimal!(I, S2) holding the same numeric value.

Throws

FixedDecimalException on overflow or inexact downscaling.