Gunnar Bittersmann: Zahl formatieren (aus 1 mach 01)

Beitrag lesen

@@Hopsel:

Beispiel: printf("%02d", 9); // Ausgabe: 09

printf("%1\$02d", 9); ist evtl. noch besser. [http://www.w3.org/International/quicktips/Overview#authoring]

Live long and prosper,
Gunnar

--
Erwebsregel 208: Manchmal ist das einzige, was gefährlicher als eine Frage ist, eine Antwort.