Thema: Delphi Edit Kommastellen ?

Einzelnen Beitrag anzeigen

Vader

Registriert seit: 6. Mai 2003
804 Beiträge
 
Delphi 6 Enterprise
 
#3

Re: Edit Kommastellen ?

  Alt 29. Nov 2006, 17:33
hallo

ich will das edit136 nur 2 kommastellen ausgibt

Delphi-Quellcode:
procedure TForm1.Button9Click(Sender: TObject);
 var ma,mb,mc,md: Real;
begin

 ma := strtofloat (edit35.Text);
 mb := strtofloat (edit38.Text);

 mc := ma+mb;
 md := mc/13.7603;

 edit39.Text := floattostr(mc)+ ' ATS';
 edit136.Text := floattostr(md)+ ' EURO';


end;
mfg vader
  Mit Zitat antworten Zitat