how would i round it up to a whole number? ex. I want 48.8 to become just 49
To round up, use ceil() To round down, use floor() To round to the nearest integer use round() Though round() allows you to round to a particular number of decimal places as well.