I made this quickly and wasn't sure if other people needed it so I will post it here
function mFloat(%val)
{
%dec = strPos(%val,".");
if(%dec == -1)
return %val;
%tenth = getSubStr(%val,%dec+1,1);
if(%tenth >= 5)
return mCeil(%val);
else
return mFloor(%val);
}
This will return the same value if there is no decimals or return whatever integer is closest to it.
If anyone has a different way or better way of doing it, post here.