Re: rounding down

From: Date: Fri, 26 Nov 2004 14:05:26 +0000
Subject: Re: rounding down
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-202893@lists.php.net to get a copy of this message
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

« previous php.general (#202893) next »