decimalHash
fn
size_t decimalHash(long coeff, ubyte scale) @safe pure nothrowThe 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
coeff | the coefficient |
scale | the scale |
Returns
the canonical hash of the value.