Struppi: Formatierte ausgabe mit printf

Beitrag lesen

Also ich weis das 1.01e3 der zahl 1010 entspricht.
wenn ich den variablen wert dazu rechne komme ich auf 3010.01 in der
Lösung steht aber 3010.010000 warum ist das so?

http://perldoc.perl.org/functions/sprintf.html

precision, or maximum width

You can specify a precision (for numeric conversions) or a maximum width (for string conversions) by specifying a . followed by a number. For floating point formats, with the exception of 'g' and 'G', this specifies the number of decimal places to show (the default being 6), e.g.:

Struppi.