Java Math ceil
int n = (int) Math.ceil((double) a / b));
Old-fashioned Osprey
int n = (int) Math.ceil((double) a / b));