Round() filter not working

Hi all,

I am using a template like below (usually the values 3123 & 9123 are from states, but to make it reproducable and as the issue stays here with direct values).
I would expect an output of 34.23, but the round statement does not seem to have any effect - ideas?

I first found this within HA version 2022.10.5, then updated to 2022.11.1.
Issue unfortunately still stays the same…

{{ (float(3123,0)/float(9123,1))*100|float|round(2) }}

Ok… never mind - was able to solve the problem with additional brakets:

{{ ((float(3123,0)/float(9123,1))*100)|float|round(2) }}
1 Like