I have been writing a program for a project and have tried using the round() function to round a floating point variable up to the next whole number. In the case of this program, it calculates how much paint is required (in gallons) to paint a certain amount of square footage. The exercise assumes that paint is only available in whole gallons, so my calculation needs to round up all fractions of a gallon to the next whole gallons.
Any thoughts?
Thanks,
Scott