2017-04-09 3 views
-1

ich diese Strings zu formatieren, um besser lesbaren Format wie 1,500E und nicht wie 1500.Format Strings mit Dezimalstellen in C# bildet

Hier ist mein Code

total1.Text = Convert.ToString(tatimi_vleres + max_tvsh + euro); 
total2.Text = Convert.ToString(tatimi_vleres + max_tvsh + Vlera_val + euro); 

ich mehrere Möglichkeiten ausprobiert, aber ich kann‘ t wie man es macht.

+0

Bitte geben Sie weitere Informationen über das eigentliche Problem. – MetaColon

+0

Mein aktueller Text in Form: 15000 € Wie ich es möchte: 15.000 € – Nex

Antwort

0
total1.Text = Convert.ToString(tatimi_vleres + max_tvsh).toString("N0") + euro; 

ist die Antwort. :)