echo (iny)$number;

Shaun wrote:

Hi,

I have a query that returns a number from  culculation in my table. It
returns say 4.00, 8.75, 0.00, 12.50 etc. How format the number so that the
trailing zeros aer removed i.e. 4, 8.75, 0, 12.5 etc?

Thanks for your help


-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to