ternary weights — a multiply becomes an add

Storing a weight as minus one, zero, or plus one turns a multiply into an add or a skip. One scale says how large those choices are. Weights that are small next to that scale round to zero and drop out of the sum. Weights that are large next to it clip to a sign, so the reconstruction cannot follow them. The drawn bar is the code times the printed scale, and the readout sums those printed numbers.

The weights are 0.90, 0.20, −0.80, 0.10, and −0.40. Each becomes −1, 0, or +1 by rounding weight/scale into that set, and clipping.

The reconstruction is the code times the printed scale. One sum adds the printed weights. The other adds the printed reconstructions. At scale 0.50 the codes are 1, 0, −1, 0, −1, three of the five weights survive, the sums are 0.00 and −0.50, and the absolute error is 1.10.