Autor Beitrag
Florian.K
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 130

Win Xp Prof. & SP 2
Delphi 10 Lite
BeitragVerfasst: Do 04.09.08 23:24 
Hi Community
Wenn ich mit Zahlen unter dem Datentypen Real rechne bekomme ich z.b 2,00 raus.
Wie runde ich die letzten beiden Zahlen ab so das es "2" wird ?
ausblenden Quelltext
1:
lblNull.Caption:=Format('%.2f',[Nullstelle]);					
Yogu
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2598
Erhaltene Danke: 156

Ubuntu 13.04, Win 7
C# (VS 2013)
BeitragVerfasst: Do 04.09.08 23:28 
Indem du die "2" im Format-String in eine "0" umwandelst:

ausblenden Quelltext
1:
lblNull.Caption:=Format('%.0f',[Nullstelle]);