in reply to decimal placement
use sprintf like this :
$n = 13.2; $n2 = sprintf("%.2f", $n); print $n2; # should print 13.20 [download]