HELP: rounding integers up!!!!!

say my code is this:
.
.
.
.
cream = (shcream + scream + ccream)/32;



where every variable is an int, how would i get the answer to always round up to the next whole number. like if the answer was 0 (in integer division) how would i get it to equal 1 ?

Comments

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories