decimalHash

fnsize_t decimalHash(long coeff, ubyte scale) @safe pure nothrow

The canonical value hash: trailing zero digits divide out of the coefficient while the effective exponent drops, so equal values at different scales hash equal (1.10 and 1.1); zero hashes equal at every scale. Mirrors decimalEq exactly (the hash/equality contract).

Parameters

coeffthe coefficient
scalethe scale

Returns

the canonical hash of the value.