(battery <= 3.590) ? 0 : ((battery >= 4.220) ? 100 : (battery - 3.590) * 100 / (4.220 - 3.590))
Can I round it to two decimal places?
It also appears as an error in the logs, but it actually works correctly.
Attribute computation error - org.traccar.handler.ComputedAttributesHandler.computeAttribute:146@1:2 variable 'battery' is undefined - Variable (ComputedAttributesHandler:147 < *:159 < BasePositionHandler:34 < ProcessingHandler:169 < *:178 < MotionHandler:41 < ...)
Can I round it to two decimal places?
It also appears as an error in the logs, but it actually works correctly.