Re: Rounding

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



6.11 --> 6.2
6.15 --> 6.2
6.19 --> 6.2
6.20 --> 6.2

i know there is a ceil() function but that rounds up to the nearest integer.. i need one decimal place still..

If my math is right, you could multiply the number by ten, take the CEILING(), then divide that by 10.


Larry

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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux