display calculated attributes on popup

I have two problems, I calculated the expression to get the battery percentage.
How can I display it without decimal places and on the pop-up by adding the %?

I attach an example
https://drive.google.com/file/d/1IhzQIPLyHVtGgLKUWMIe3j_3i_FDMkdZ/view

Anton Tananaeva year ago

You probably have to format it into a string. Maybe something like this:

new("java.text.DecimalFormat","0.0").format(...)
Cristiana year ago

is the calculated attribute in the example the one you used?
I would change the energy attribute type to battery level.
https://ibb.co/ZWkrSHq
this only in case the expression of that calculated attribute gives as a result the percentage of the battery.

Ciao Giuseppe se hai risolto possiamo metterci in contatto, ho un teltonika fmb140 e ho dei dati ioXXX(io113,io115....) se creo un attributo calcolato non lo visualizza nel popup info ti lascio la mia email [redacted]

Anton Tananaev7 months ago

We don't allow sharing personal contact information, as you probably realized. Please don't do it again or you will be banned.