digitsets
A digit set, in the context of positional numeral systems, is the finite set of symbols used for the digits when representing numbers in a fixed base b. A representation of a number is formed as a finite sum of digits times powers of b, written as sum d_i b^i with d_i in D.
In standard decimal or binary systems, D is a complete residue system modulo b, typically D = {0,1,...,b−1}.
Canonical number systems study bases b together with digit sets D of size b so that every
Applications include computer arithmetic and digital hardware design, where digit sets are chosen to minimize carries
Beyond integers, digit sets extend to nonstandard bases, such as complex or non-integer bases, where D is