check that two inputs are whole numbers, one may be 0