Ver Mensaje Individual
  #2  
Antiguo 10-02-2007
Avatar de seoane
[seoane] seoane is offline
Miembro Premium
 
Registrado: feb 2004
Ubicación: A Coruña, España
Posts: 3.717
Reputación: 26
seoane Va por buen camino
Por favor Roman, eso no seria internacional. La forma correcta seria esta
Código Delphi [-]
function ParteEntera(X: Double): Integer;
var
  S: String;

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

Responder Con Cita