Mega Code Archive
Categories
/
Php
/
Strings
Integer displayed as a dollar amount set to two decimal places
"; echo "$" . sprintf ("%.2f", $thenumber); ?>