Why do you need code?
Format>Cells>Number Tab Custom Type = ###
This will round the number to the nearest whole number. If you always want to round down, see the ROUNDDOWN funtion. There are also other funtions the work as well or better for this.
lenze