well, you could write a function that would verify the number of figures after the decimal and then return a string that you can print. like this:
function displayValue($number, $figures) {
$array = explode(".", $number);
while(strlen($array[1]) < $figures) {
$array[1] .= "0";
}
return implode(".", $array);
}
Also, since you're just using it for money values, your function could only take a single parameter and replace $figures (within the function) with the number 2. Then, in your code, just:
echo '$'.displayValue($number);