Changed digitalVoltage to float value

changed digitalVoltage from int to float, and did some type casting in
the mathy section to make this work properly.

added some comments.