revert float to int