pack float in two bytes