in reply to decimal placement

use sprintf like this :

$n = 13.2; $n2 = sprintf("%.2f", $n); print $n2; # should print 13.20

He who asks will be a fool for five minutes, but he who doesn't ask will remain a fool for life.