Well, I would store the calculated cost in an int, since there's no fractional dollar amount involved.

Look up the ceil() function, it's what you want. And cast the return value of ceil


...