Ver Mensaje Individual
  #4  
Antiguo 10-02-2007
Avatar de roman
roman roman is offline
Moderador
 
Registrado: may 2003
Ubicación: Ciudad de México
Posts: 20.269
Reputación: 10
roman Es un diamante en brutoroman Es un diamante en brutoroman Es un diamante en bruto
Quizá quiere algo más artesanal

Código Delphi [-]
function ParteEntera(X: Double): Integer;
var
  S: String;

begin
  S := FloatToStr(X);
  Delete(S, Pos('.', S), MaxInt);
  Result := StrToInt(S);
end;



// Saludos
Responder Con Cita