Converting between integer and float data representations