The invention relates to a method and device for encoding multiple numerical values, equipment and a medium. Comprising the following steps: acquiring a plurality of initial numerical values which are the same in numerical
value type; performing bit expansion
processing on each initial numerical value in the plurality of initial numerical values according to a preset multiple to obtain a plurality of first intermediate numerical values; and executing logical operation on the plurality of first intermediate numerical values to obtain a target numerical value. It can be seen that in the method, a high-low bit combined storage mode is not adopted, bit expansion
processing is carried out on each initial numerical value, and it is ensured that the binary length of each first intermediate numerical value can meet the requirement for follow-up integration of all initial numerical values. And fusing the plurality of first intermediate values into a complete target value through logical operation. The mechanism fundamentally avoids the scene that in a traditional scheme, a low-bit segment needs to be filled with a large number of zero values to meet the storage format, the technical problem that in the traditional scheme, data
storage efficiency is low is effectively solved, and finally the expected storage saving target can be achieved.