On November 26, 2004 08:58, Brad Ciszewski wrote: > hi everyone, i am looking for a snipplet to round down a number. i was > wondering if you could put a negative number in the round() statement to do > this, i want it to round down even if its at something.9, as long as its > not a whole number, if needs to be rounded down. can anyone help me? Searching on the php.net site in the manual is/can be your friend. You want the floor() function. Take a look at: http://ca3.php.net/manual/en/function.floor.php -- Regards, David Bevan We could learn a lot from crayons: some are sharp, some are pretty, some are dull, some have weird names, and all are different colors....but they all exist very nicely in the same box. http://www.getanyideas.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php