Updated battery volts API to easily convert to and from double values