John Hennessy wrote:
[...]
I am using %03.4f to provide output that looks like 100.0000
I would like number less than 100.0000 to look like 099.0000
I would like to keep the 3 digits prior to the decimal point either with
or without the leading zero as required.
Any suggestions welcomed.
Thanks
John.
Use %08.4f.
The part before the decimal point (08) indicates the length of the
entire field, and that includes the fractional part and the decimal point.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>