Hi,
Saturday, March 27, 2004, 1:31:33 AM, you wrote:
CT> Hey,
CT> Im trying to use sprintf to format a number and left pad it with spaces, but
CT> it doesnt want to add the spaces
CT> I can pad it with anyother char using sprintf("%'_8.2f, $val) which will
CT> left-pad the number with underscor
Hey,
Im trying to use sprintf to format a number and left pad it with spaces, but
it doesnt want to add the spaces
I can pad it with anyother char using sprintf("%'_8.2f, $val) which will
left-pad the number with underscores
Has anyone had any luck padding with spaces??
or is there a better way
2 matches
Mail list logo