I'm trying to compare two floats in twig but I don't have the good result :
I have two 'equal' floats : float1 and float2
{% if float1 == float2 %}
<span>Floats are equal</span>
{% else %}
<span>Floats are different</span>
{% endif %}
{{ float1 == float2 }}
Display :
<span>Floats are different</span>
1
How can I compare two floats in Twig ? I don't understand why the result of the comparison is true but the result of the if statement is false