matty Posted March 14, 2007 Share Posted March 14, 2007 Hi, I know the function to round. I was wondering is there anyway to round down? Because the round function currently rounds (for example)4.5 to 5, whereas i want 4.5 to be 4. Can this be done? Or will it just be easier for me to -0.1 from the number first? Thanks, Matt Link to comment https://forums.phpfreaks.com/topic/42725-solved-rounding-down-function/ Share on other sites More sharing options...
Lumio Posted March 14, 2007 Share Posted March 14, 2007 http://php.net/round - normal round http://php.net/ceil - round up http://php.net/floor - round down Link to comment https://forums.phpfreaks.com/topic/42725-solved-rounding-down-function/#findComment-207281 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.