round battery charge to the nearest integer