allowed numBatches to round down if non integer