changing the variable values to whole numbers