convert int8_t to float