Bit Packing

I need a program where you can save various types of numbers into static array. Array volume any, leys say 30. Numbers range from -1000.0 to 1000.0 and can be integers. If number is integer then get rid of it's fractional part zeros. Take any appropriate number of values and pack them into 32-bit integer. Decide what operations have to be done. In another method unpack 32bit integers and extract bits back to its original values that were before packing. Platform to do this - C or C++.

11th May 2018, 6:57 AM
0 Answer