Autor Beitrag
K.S.M.
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 82

Windows 7 Professional
Delphi 2010, HTML, JavaScript, CSS, PHP, ein wenig C, Flash ActionScript 2.0/3.0, SQL, Assembler
BeitragVerfasst: So 23.09.07 08:56 
Hallo,
ich habe mal eine Frage.

Wie kann ich einen String so formatieren, dass aus "2,0" "2,00 €" wird oder aus "1234,5" "1.234,50 €"?

Vielen Dank für Antworten! :)

_________________
"Programmieren ist keine Kunst. Programmieren ist eine Fähigkeit!"
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: So 23.09.07 11:11 
Sieh dir mal den Befehl Format an, damit geht das. Alternativ mit FloatToStrF oder CurrToStr.