ID:176053
 
I am making a GM command to half palyers hp if they have been misbehaving but some players have odd numbers resulting in decimals. Here is the line, how could I round it off?

mob/GM/verb/Bitchslap(mob/M in world)
set category = "Admin"
world <<"{{[M]}} has recieved a quick bitchslap by [usr]"
M.HP /=2
M.HP = round(M.HP/2)
In response to Garthor
Ah thanks! I was trying other ways but I never thought of it that way. Thanks again.