switch float to int