title: Round up a variable with Shopify Liquid
body: <p>I wish to assign a dummy variable to a math value so I can then take the ceiling.</p>
  
  <p>My current code is:</p>
  
  <pre><code>{% if variant.compare_at_price &gt; variant.price %} 
      SAVE {{ variant.compare_at_price | minus:variant.price | times:100 | divided_by:variant.compare_at_price }}%
  {% endif %}
  </code></pre>
  
  <p>Output is SAVE 20% (for example, but if it's 19.99 it'll be 19% rather than 20%)</p>
  
  <p>But I want to call:</p>
  
  <pre><code>x= {{ variant.compare_at_price | minus:variant.price | times:100 | divided_by:variant.compare_at_price }}%
  </code></pre>
  
  <p>then take <code>{{ x | ceil }}</code></p>
  
  <p>How do I assign <code>x</code>?</p>