You can also just plug any number into an Int component (Params/Primitive/Int) and grasshopper will round to the nearest whole number.
Watch out though, for tie-breaking (something .5) it takes the closest even number, rather than the more common rule of always rounding up