How do I make an NPC round off values?

I haven’t figured this out on my own, but how can I tell the NPC to go screw itself change the decimal after the real number into a flawless number?
(I mean 1.12 to 1, 1.6 to 2… yes I want to round off to nearest 1.)

int(var + 0.5)

Everyone, refer to this just in case there’s another player who can’t round off values. Because I happened to be one of 'em!