title: Round a digit upto two decimal place in Swift
body: <p>I'm getting a value of digits which i'm trying to convert to two decimal places. But when i convert it it makes the result to 0.00 . The digits are this <code>0.24612035420731018</code> . When get its .2f value it shows 0.00. The code that i tried is this,</p>
  
  <pre><code> let  digit = FindResturantSerivce.instance.FindResModelInstance[indexPath.row].distance
      let text = String(format: "%.2f", arguments: [digit])
      print(text)
  </code></pre>