There's a printf function, as in C, and a sprintf function too.
So
printf ("%3.2f", $num);
Should get you what you're after.
HTH Philosophy can be made out of anything. Or less -- Jerry A. Fodor
In reply to Re: decimal placement
by arturo
in thread decimal placement
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |