I don't know why this escaped me so long, but if you want to convert a float to an integer with rounding, just do this:
local i:int
local f:float
f=0.635484
i=f+0.5
print i
Kind of dumb, but I never really thought of it before.
local i:int
local f:float
f=0.635484
i=f+0.5
print i
Kind of dumb, but I never really thought of it before.