On Tue, 2004-08-03 at 23:25, Robert Frame wrote:
> 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
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 webhost
2 matches
Mail list logo