1. An apparatus for encoding numbers into binary form, comprising: a number accesser configured to access representations of numbers stored in non-transitory storage, the numbers being in an interval that comprises 2^n non-overlapping sub-intervals that cover the interval; a quantizer configured to assign the respective numbers to one of the 2^n non-overlapping sub-intervals in accordance with a location of the respective number within the interval; and a mapper configured to encode each of the respective numbers as a binary string in non-transitory storage based on the assigned sub-interval, the binary string being one of 2^n binary strings of length “n” that are ordered across the interval in accordance with Hamming distance from a base binary string of length “n”.