normalize the value to integer