Thema: Delphi Function Integer

Einzelnen Beitrag anzeigen

Benutzerbild von Gausi
Gausi

Registriert seit: 17. Jul 2005
905 Beiträge
 
Delphi 12 Athens
 
#3

Re: Function Integer

  Alt 24. Mär 2009, 18:24
Ist Integer() nicht einfach ein Typecast, der dann nur mit Typen wie Pointer, PChar und einigen anderen funktioniert? Sowas kompiliert zumindest bei mir nicht:
Delphi-Quellcode:
var x: double;
    i: Integer;
begin
  x := 31.22;
  i := Integer(x));
end;
Being smart will count for nothing if you don't make the world better. You have to use your smarts to count for something, to serve life, not death.
  Mit Zitat antworten Zitat