Foros Club Delphi

Foros Club Delphi (https://www.clubdelphi.com/foros/index.php)
-   Varios (https://www.clubdelphi.com/foros/forumdisplay.php?f=11)
-   -   divicion entre dos Int64 (https://www.clubdelphi.com/foros/showthread.php?t=53524)

gulder 22-02-2008 21:31:04

divicion entre dos Int64
 
hola foro tengo 3 variables de tipo Int64 y cuanfo intento hacer una divicion me sale un error en la divicion lo hago de la siguiente forma

Código Delphi [-]
function GetSizeOfFile(const Filename:string): Int64;
var Sr:TSearchRec;
    i,ii,iii:Int64;
begin
  iii:=1073741824;
  try
    if FindFirst(FileName,faAnyFile,sr) <> 0 then
      raise Exception.Create('Archivo ' + FileName+' no encontrado');
      i:=sr.FindData.nFileSizeHigh * maxdword + sr.Finddata.nFileSizeLow;

    ii:=i/iii;      // Aqui esta el error

    Result:= ii;
  finally
    FindClose(sr);
  end;
end;

y me tira el siguiente error

Incompatible types: 'Int64' and 'Extended'

por que y como se solucionaria esto gracias de antemano gulder

egostar 22-02-2008 22:23:06

Cambia el signo / por DIV, te recomiendo le des una leida a la ayuda de Delphi.

Salud OS.

gulder 23-02-2008 01:03:23

gracias egostar por la respuesta y por la recomendacion salu2 gulder


La franja horaria es GMT +2. Ahora son las 23:18:05.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi