Hello, this is my first post around here, but I've been lurking for almost a year already, so I'd like to say Hi to everyone. (Well, at least everyone that browses this section) Anyways, enough of this already, on to the main question. I want to change the OnAttack, but instead of just adding +5 or -5 like someone [mentioned](http://www.touchofdeathforums.com/smf/index.php?topic=55259.0), I would like it to add +/- 5%. So I did this algorithm: Damage = Rand(Int((GetPlayerSTR(Index)) - (Int((GetPlayerSTR(Index)) * 0.05))), Int((GetPlayerSTR(Index)) + ((GetPlayerSTR(Index)) * 0.05))) (The code might be messy, I'm kinda tired of looking at all the parantheses) Obviously sometimes the value returned is something like 2.3 or so, and so It doesnt show (E.G Doesn't affect the NPC) So, for it to show, It needs to be rounded, and that is my question. Short version: Need to round the value of a variable, what do Thank you.