Autor Beitrag
mcst09
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 112



BeitragVerfasst: Mi 13.09.06 10:51 
Hallo,

ich habe in meiner Datenbank einen Float-Wert (zB. 12,56). Wenn ich diesen nun Anzeige, dann klappt das bei runden Zahlen (zB. 45,00) gut und auch bei Zahlen mit zwei Stellen hinterm Komma gibt es keine Probleme (zB. 12,45). Aber wenn eine Zahl zB. 23,50 ist, dann wird nur 23,5 angezeigt. Wie bekomme ich bei soclhen Zahlen die letzte 0 dran??

Danke
Axl
ZeitGeist87
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1593
Erhaltene Danke: 20

Win95-Win10
Delphi 10 Seattle, Rad Studio 2007, Delphi 7 Prof., C++, WSH, Turbo Pascal, PHP, Delphi X2
BeitragVerfasst: Mi 13.09.06 10:53 
Hallo!

Schau dir mal format() an!

LG
Stefan

_________________
Wer Provokationen, Ironie, Sarkasmus oder Zynismus herauslesen kann soll sie ignorieren um den Inhalt meiner Beiträge ungetrübt erfassen zu können.
uwewo
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 154



BeitragVerfasst: Mi 13.09.06 10:55 
Schau mal unter FloatToStrF
alzaimar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2889
Erhaltene Danke: 13

W2000, XP
D6E, BDS2006A, DevExpress
BeitragVerfasst: Mi 13.09.06 12:23 
Schau mal unter FormatFloat :lol:

_________________
Na denn, dann. Bis dann, denn.