title: Convert String to Float up to 2 Decimal places
body: <p>I have a php variable which contains values like '1.15' in string datatype, Basically i want to convert the string value to a Float value.</p>
  
  <p>When the variable contains value like 1.15 it gets converted to float exactly, But if the variable has value like 1.10 after conversion to float it becomes 1.1 (I want it to be 1.10)</p>
  
  <p>I have tried a few things but i am not able to convert 1.1 to 1.10.</p>
  
  <p>So is there any solution for this problem?</p>
  
  <p>and remember in the end the variable should have datatype float and value 1.10</p>