title: Is there a direct approach to format numbers in jinja2?
body: <p>I need to format decimal numbers in jinja2. </p>
  
  <p>When I need to format dates, I call the strftime() method in my template, like this:</p>
  
  <pre><code>{{ somedate.strftime('%Y-%m-%d') }}
  </code></pre>
  
  <p>I wonder if there is a similar approach to do this over numbers.</p>
  
  <p>Thanks in advance!</p>