decimalEq

fnbool decimalEq(long a, ubyte aScale, long b, ubyte bScale) @safe pure nothrow

Value-based equality of two coefficients at their own scales: the smaller scale aligns up; an alignment overflow means the values differ (one magnitude cannot be the other's). Exact - never a FLOAT64 detour (ADR-2026-10-23-14).

Parameters

athe left coefficient
aScalethe left scale
bthe right coefficient
bScalethe right scale

Returns

whether the two values are equal.