Fix voltage from int to double.