aeroswat Posted February 23, 2010 Share Posted February 23, 2010 I'm used to integer division. If I wanted PHP to always round to the low integer like the following: 54/5 = 10 50/60 = 0 etc How would i accomplish this? Link to comment https://forums.phpfreaks.com/topic/193145-php-division/ Share on other sites More sharing options...
jl5501 Posted February 23, 2010 Share Posted February 23, 2010 the functions floor(), ceil() and round() will probably cover your needs Link to comment https://forums.phpfreaks.com/topic/193145-php-division/#findComment-1017092 Share on other sites More sharing options...
aeroswat Posted February 23, 2010 Author Share Posted February 23, 2010 the functions floor(), ceil() and round() will probably cover your needs Was just typing right before you posted that I found the floor function Thank you Link to comment https://forums.phpfreaks.com/topic/193145-php-division/#findComment-1017093 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.