Many thanx.
I saw this function when going through the manual, but I guess I couldn't see the forest because of all the trees in the way.
For newbies, the way to use number_format is this:
Round to 2 decimal places, add thou sep.
$Number = number_format($Number, 2);
Round to integer and add thou sep:
$Number = number_format($Number);
The manual gives a really convoluted example.
Also, make sure you do all your calculations before you use number_format, since it returns a string.
arelgee