|
Posted by Andy Jeffries on 10/21/05 13:22
gayle wrote:
> Thanks Micha,
> I saw that, but it does not quite fit the script. It seems to require
> already knowing the number. I also tried echo round (',',2); but no
> good. I guess people would need to see the script for it to make any
> sense. Too many unique variables.
Your call to round doesn't make sense, you can't round a string to two
decimal places.
Do you mean you want to format a number with , at the thousand point and
two decimal places?
If so do:
echo number_format("1203.120321", 2);
Cheers,
Andy
Navigation:
[Reply to this message]
|