printf("%lf", x) -> in Fließkommazahl Komma statt Punkt
-
Hallo Forum, wie kann ich bei Benutzung von printf("%lf", 1.23) die Ausgabe 1,23 statt 1.23 erreichen? Danke!
-
du koenntest mit <locale.h> [1] rumspielen.
[1] http://www.dinkumware.com/manuals/reader.aspx?b=c/&h=locale.html
-
Okay, danke. Mit
#include <locale.h> setlocale( LC_ALL, "" );
funktioniert's.
Gruß