The documentation says that Sys.getSystemStats().battery is the battery life remaining in percent, but it isn't clear exactly what the value is supposed to be. In the emulator, the value appears to be fixed to 1.0f leading me to believe that the value is a Float between 0 and 1, but when I run the code on a physical device, the value is a Number between 0 and 100.
It would be nice if the documentation was more specific about the type and range of values, and if the expected type could be clarified.
Travis