title: smarty convert string to Integer/Float
body: <p>I have some string value, like  <code>$value = "123.45";</code>.</p>
  
  <p>Since I have to compare this <code>$value</code> with Integer, I need to convert  <code>$value</code>'s type to float. </p>
  
  <p>How can I convert String to Integer/Float in smarty language?</p>
  
  <p>Thanks.</p>