Add packing of floating point numbers and tests