RE: [PHP] Easy Question (I think)
| From: | Richard Bewley | Date: | Wed, 04 Aug 2004 03:27:20 +0000 |
| Subject: | RE: [PHP] Easy Question (I think) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-192668@lists.php.net to get a copy of this message | ||
Are you looking for the round function?
$number = "4.3392";
$number = round($number);
-----------------------------------------------------------------
Thank you,
Richard Bewley
rbewley@eq-sys.com
Equinox Systems and Development
Website: http://www.eq-dev.com/
Also, please look at our webhosting services, specializing in business web
hosting starting from $15 per month!
-----Original Message-----
From: Robert Frame [mailto:Robert_M_Frame@verizon.net]
Sent: Tuesday, August 03, 2004 11:25 PM
To: php-general@lists.php.net
Subject: [PHP] Easy Question (I think)
I am sure this is an obvious answer, but dang if I could find it.
How do you chop off a decimal value in PHP? I know I can do it using a
combination of modulus, subtraction and division, but isn't there a function
that does this? I think I am suffering from a giant mental block =)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php