01-28-2008, 06:28 PM
|
#3 (permalink)
|
|
The Addict
Join Date: Jan 2008
Location: USA
Posts: 217
Thanks: 16
|
Err... round() works too. You can even specify the precision.
PHP Code:
$float = 4856756.55;
echo round($float);
__________________
Programmers are in a race with the Universe to create bigger and better idiot-proof programs, while the Universe is trying to create bigger and better idiots. So far the Universe is winning. - Rich Cook
|
|
|
|