in reply to decimal placement
There's a printf function, as in C, and a sprintf function too.
So
printf ("%3.2f", $num); [download]
Should get you what you're after.
HTH Philosophy can be made out of anything. Or less -- Jerry A. Fodor