select abs(-1) from dual;

--
declare
n number;
begin
n := abs(-1);
end;

good luck.