fill with zeros

Rob Mahurin rob at utk.edu
Wed Jun 3 12:25:48 CDT 2009


On Jun 3, 2009, at 1:10 PM, claudio cortes wrote:
> And the question is... How can I standarize de output format of the
> first four columns (year,month,day,hour) with two digits (09 instead
> of 9,for example). Is there a fprintf option to do this ?


printf("%02d\n", 9);

Rob

-- 
Rob Mahurin
Department of Physics and Astronomy
University of Tennessee 		865 207 2594
Knoxville, TN 37996 			rob at utk.edu





More information about the Help-octave mailing list