Hello, triying to add two states in a value Template with the developpers Tools.
{{ (states.sensor.price_heures_creuses.state) | round(2) | float + (states.sensor.price_heures_plaines.state) | round(2) | float}}
I get 3.5300000000000002 as a result
the same as :
{{ (states.sensor.price_heures_creuses.state)| float + (states.sensor.price_heures_plaines.state) | float}}
I get : 3.5300000000000002
And this:
{{ (states.sensor.price_heures_creuses.state)| float + (states.sensor.price_heures_plaines.state) | float | round(2) }}
same result : 3.5300000000000002
| float + (states.sensor.price_heures_plaines.state) | float | round(2)
Just for Kicks:
{{ (states.sensor.price_heures_creuses.state) }}
gives: 1.14
and this:
{{ (states.sensor.price_heures_plaines.state) }}
gives : 2.39
So I am specting : 3.53 as a result
Do you have an idea what’s happening?
Thanks