Convert floating to fixed point