unit unit1;

{$mode objfpc}{$H+}

interface

uses
  Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls,
  Buttons, ExtCtrls, Math;

type

  { TForm1 }

  TForm1 = class(TForm)
    Button1: TButton;
    Button2: TButton;
    Edit1: TEdit;
    Edit2: TEdit;
    Image1: TImage;
    Label1: TLabel;
    procedure Button1Click(Sender: TObject);
    procedure Button2Click(Sender: TObject);
  private
    { private declarations }
  public
    { public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.lfm}

{ TForm1 }

procedure TForm1.Button1Click(Sender: TObject);
var
Fahrenheit: Double;
begin
   try
     Fahrenheit:= StrToFloat(Edit1.Text); //* 9/5 + 32;
     Fahrenheit := RoundTo(Fahrenheit,-1);
     Edit2.Text:= FloatToStr(Fahrenheit);
Except
    ShowMessage('Falsche Eingabe!');
end;

end;

procedure TForm1.Button2Click(Sender: TObject);
begin
   Application.terminate;
end;


end.

