abs
Retorna o valor absoluto de um argumento numérico.
Sintaxe
function abs ( x : < integer, real > ): < integer, real > ;
Exemplo
Program PascalZIM;
var
r: Real;
i: Integer;
begin
r := abs( -2.3 ); // r recebe 2.3
i := abs( -157 ); // i recebe 157
end.
Created with the Freeware Edition of HelpNDoc: Full featured multi-format Help generator