title: How to divide and multiply Ansible facts queried by json_query?
body: <pre><code>&quot;{{ ansible_facts | json_query('mounts[*].size_available') }} / {{ ansible_facts | json_query('mounts[*].size_total') }} * 100&quot;
  </code></pre>
  <p>I am trying to get size available and divide it by size total and Multiply it by 100 to give me the percentage disc usage. This current code gives me the output something like this:</p>
  <blockquote>
  <p>&quot;msg&quot;: &quot;[238273] / [483298433] * 100&quot;</p>
  </blockquote>
  <p>It completely ignores the <code>/</code> and the <code>*</code>.<br />
  How can I resolve this issue?</p>