Try number_format()
if you have int than ($int_var*100)/100 or (double)$int_var
number_format((double)$int_var,...)
Andrey Hristov
IcyGEN Corporation
http://www.icygen.com
BALANCED SOLUTIONS
- Original Message -
From: "Robert J Collins" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
S
> I am trying to get a double data type to display the .00 in a
> "hole" dollar amount (i.e. 432.00 not 432 or $432.00 not $432).
> Can anyone tell me how to do this?
printf(); or sprintf(); is your friend
Chris
2 matches
Mail list logo