wenn ich int nehme kann ich doch keine kommazahlen nehmen...oder??
doch, das kannst du indirekt, indem du in cent speicherst.

Hier ein Beispiel

Code:
int kontostand = 1254            //12€ 54 Cent

printf("%d.%d", kontostand%100, kontostand-(kontostand%100))
wenn ich mich irre, sagt es mir...