[SOLVED]always round a number DOWN

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
vigge89
Forum Regular
Posts: 875
Joined: Wed Jul 30, 2003 3:29 am
Location: Sweden

[SOLVED]always round a number DOWN

Post by vigge89 »

I know about the php-function round(), but I want to know if it's possible to always make it round the given number down? even if it's 2.99, i still want it to be rounded down to 2. Anyone?
Last edited by vigge89 on Sun Aug 15, 2004 6:15 pm, edited 1 time in total.
User avatar
vigge89
Forum Regular
Posts: 875
Joined: Wed Jul 30, 2003 3:29 am
Location: Sweden

Post by vigge89 »

oh, nevermind, found it, floor() :D
Post Reply