Are you looking for the round function?

$number = "4.3392";
$number = round($number);

-----------------------------------------------------------------
Thank you,
Richard Bewley
[EMAIL PROTECTED]
 
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:[EMAIL PROTECTED] 
Sent: Tuesday, August 03, 2004 11:25 PM
To: [EMAIL PROTECTED]
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

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

Reply via email to