converting battery and fuel level into ints