Decimal.toHash

struct Decimal
const @nogc nothrow pure @safe
size_t
toHash
()

Return Value

Type: size_t

value hash.

Examples

assert(Decimal(12300, 2).toHash == Decimal(12300, 2).toHash);
assert(Decimal(12300, 2).toHash == Decimal(123000, 3).toHash);
assert(Decimal(12300, 2).toHash != Decimal(12300, 1).toHash);

Meta