The absolutes function makes an integer positive. Usefull in complex problems.
Lua:
function abs(str)
if str < 0 then
str = -str
end
return str
end