Round numbers

can any one thel me how to round numbers in a input field

i al ready found math.round but can get it to work