ceil -floor functions lazarus / 13-General ---------------------------------------------------------------------- Anonymous · 2006-01-24 13:17 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. ---------------------------------------------------------------------- matthijs · 2006-01-24 16:43 You should add math to the uses clauss in the implementation section. And please be more specific next time about the error you received. ---------------------------------------------------------------------- Anonymous · 2006-01-25 14:01 thanks.