unit Unit1;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, LResources, Forms, Controls, Graphics, Dialogs, Buttons;
type
{ TForm1 }
TForm1 = class(TForm)
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
{ private declarations }
public
{ public declarations }
end;
var
Form1: TForm1;
num : Real;
res : Integer;
implementation
{ TForm1 }
procedure TForm1.Button1Click(Sender: TObject);
begin
num :=125.2;
res := floor(num);
Caption:= IntToStr(res);
end;
initialization
{$I unit1.lrs}
end.
where is the mistake?lazarus didn't compile this code.