PRINTF() help
Posted: Wed Nov 01, 2006 8:52 am
I am trying to line up the decimal places. Here is the code that I am using...
echo("<td>");
printf("%8.2f\n",$dspcst);
echo("</td>");
Is there anyway to right justify the output so the decimal places line up? The above code seems to left justify my output.
Thanks for any help!
Warren
echo("<td>");
printf("%8.2f\n",$dspcst);
echo("</td>");
Is there anyway to right justify the output so the decimal places line up? The above code seems to left justify my output.
Thanks for any help!
Warren