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 I am suffering from a giant mental block =)

floor()

Cheers,
Rob.
-- 
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for       |
| creating re-usable components quickly and easily.          |
`------------------------------------------------------------'

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

Reply via email to