This may be simple question to answer, but I seem to be struggling to find an answer, so I apologize if this is a newb question. I am attempting to retrieve the FuelGauge fuel.getSoC() in my iOS App. The iOS app is retrieving the value no problem, but as I am converting it from a Float to an Int or a Double, on the Electron, before it is being sent to the iPhone, it is coming across looking like this
When Converted to a Double:
Current Device Battery Life: -2.32462795913192e+51
How can I convert this value to read as a percentage? I have done some reading about Floating point values, but to be honest, I don’t really understand them very well, so any guidance here would be very much appreciated. Thank you very much!!