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
PRINTF() help
Moderator: General Moderators
Re: PRINTF() help
<td align='right'>warrenk wrote: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.
or
<td style='text-align:right'>