Ver Mensaje Individual
  #2  
Antiguo 20-04-2006
Avatar de seoane
[seoane] seoane is offline
Miembro Premium
 
Registrado: feb 2004
Ubicación: A Coruña, España
Posts: 3.717
Reputación: 24
seoane Va por buen camino
Se me ocurre algo como esto

Código:
function Restar(i,j: Integer): Integer;
begin
  if (i<j) then Result:= (i + 1000000) - j
    else Result:= i - j;
end;
Donde i es la lectura actual y j la anterior.
Responder Con Cita