Re: [PHP] Round a number

2003-10-03 Thread Marek Kilimajer
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://ww

[PHP] Round a number

2003-10-03 Thread Shaun
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, visi