title: Format float in golang html/template
body: <p>I want to format <code>float64</code> value to 2 decimal places in golang <code>html/template</code> say in <code>index.html</code> file. In <code>.go</code> file I can format like:</p>
  
  <pre><code>strconv.FormatFloat(value, 'f', 2, 32)
  </code></pre>
  
  <p>But I don't know how to format it in template. I am using <code>gin-gonic/gin</code> framework for backend. Any help will be appreciated. Thanks.</p>