in reply to Where's that function

You could use sprintf("%.2f", $n) to return $n with two decimal places