I'm having a brain fart today..... I'm extracting data from a database and putting it on a web page. The data has to be formatted with 2 fixed decimal places. My problem is that some of the data is, for example: 12345.50, but on the web page it shows as 12345.5
There's got to be an easy way to do this but I'm just not seeing it. Any help would be greatly appreciated.
Thanks....
PS: I've tried printf and sprintf but these functions don't allow me to print on a web page.
There's got to be an easy way to do this but I'm just not seeing it. Any help would be greatly appreciated.
Thanks....
PS: I've tried printf and sprintf but these functions don't allow me to print on a web page.