FixedDecimal.divideToScale

auto divideToScale(int S2)(const FixedDecimal!(I, S2) rhs, ubyte resultScale) const @safe pure

Division with an explicit result scale, rounded half-even.

Parameters

rhsthe divisor (same storage class, any scale form).
resultScalefraction digit count of the result.

Returns

FixedDecimal!(I, -1) at exactly resultScale.

Throws

FixedDecimalException on zero divisor, scale beyond the

precision, or rounded coefficient overflow.