Autor Beitrag
Jojojoxx
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 386



BeitragVerfasst: Di 22.04.08 23:23 
Hallo!

Wie ist es möglich beim Konvertieren einer Float-Zahl zu einem String automatisch nach der Tausenderstelle ein Punkt setzen zu lassen?
Danke euch!
mfg

Jojo
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19341
Erhaltene Danke: 1752

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Mi 23.04.08 03:34 
Jojojoxx Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 386



BeitragVerfasst: Mi 23.04.08 12:37 
Danke für deine Antwort!

Irgendwie bekomme ich es nicht hin, eine Zahl wie z.B. 1832,54 in den String 1.832,54 zu konvertieren :(
Habe verschiedene Parameter der Funktion ausprobiert :(
mfg

Jojo
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19341
Erhaltene Danke: 1752

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Mi 23.04.08 12:43 
Du musst natürlich die Genauigkeit z.B. groß genug setzen, bei mir funktioniert das jedenfalls problemlos:
ausblenden Delphi-Quelltext
1:
  Edit1.Text := FloatToStrF(StrToFloat(Edit1.Text), ffNumber, 202);					
Jojojoxx Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 386



BeitragVerfasst: Mi 23.04.08 12:50 
Ahh so klappts!
Vielen Dank! :-)
mfg

Jojo