Convert the rounded battery level to an integer 

...so that the right icon filename is found (ie battery.9.png not battery.9.5.png).