This isn't going to do what you want - you're casting the battery voltage to an int (truncating the fractional part of the votage) and then multiplying it by 10.

You would be much better off just leaving the value and MAX_CELL_VOLTAGE as floats.