Thema: Delphi Function Integer

Einzelnen Beitrag anzeigen

Benutzerbild von Gausi
Gausi
Online

Registriert seit: 17. Jul 2005
900 Beiträge
 
Delphi 11 Alexandria
 
#3

Re: Function Integer

  Alt 24. Mär 2009, 19: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