How would I go about converting a number let's say, 45.382832892 into 45.3 ?
Check out the function sprintf() and printf()at http://www.php.net/manual/en/function.sprintf.php and http://www.php.net/manual/en/function.printf.php
For you it could look like $num = 45.382832892; printf("%.1f", $num);
This would output 45.3 (I think)
/Staffan
The number_format() and/or round() methods should fit the bill🙂
http://www.php.net/manual/en/function.number-format.php http://www.php.net/manual/en/function.round.php
HTH.
Geoff A. Virgo