title: Float Comparison in twig
body: <p>I'm trying to compare two floats in twig but I don't have the good result :</p>
  
  <p>I have two 'equal' floats : float1 and float2</p>
  
  <pre><code>{% if float1 == float2 %}
     &lt;span&gt;Floats are equal&lt;/span&gt;
  {% else %}
     &lt;span&gt;Floats are different&lt;/span&gt;
  {% endif %}
  {{ float1 == float2 }}
  </code></pre>
  
  <p>Display : </p>
  
  <pre><code>&lt;span&gt;Floats are different&lt;/span&gt;
  1
  </code></pre>
  
  <p>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</p>