title: How to remove decimal on smarty template
body: <p>I work on a project base on prestashop cms. </p>
  
  <p>This cms use smarty and i need to modify a tpl file to display a price without decimal.</p>
  
  <p>I just want to modify one tpl and not applying this trick to full website</p>
  
  <p>I found in another thread a code to remove null decimals like this 51,00</p>
  
  <pre><code>convertPrice|regex_replace:'/[.,]0+/':'' 
  </code></pre>
  
  <p>But i don't know how to change this code to remove decimal decimals like this too: 51,85 transform to 51</p>
  
  <p>Many thanks
  R</p>