Am Montag, 22. Dezember 2003 20:17 schrieb Perl: > i know what " %9.1f" would have done in this case. > but how does " %9.2g" round off ?
the FORMAT notation used by prinf, sprintf, ... can be found on http://www.perldoc.com/perl5.8.0/pod/func/sprintf.html which gives: %e a floating-point number, in scientific notation %f a floating-point number, in fixed decimal notation %g a floating-point number, in %e or %f notation Just in case: scientific notation is something like XeY which means X times 10 to the poxer of Y (power first!) HTH, wolf -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>