title: How to convert nsstring to float upto 2 decimal places in objective C?
body: <p>When i convert <strong>NSString</strong> to <strong>Float</strong> upto <code>2</code> decimal places, it will automatically take <code>6</code> precisions after point. I want only <code>2</code> decimals after point. According to me, in <code>Objective-C</code> when we create a <strong>Float</strong> it will assign memory to store floating point number say <code>8</code> bytes.</p>
  
  <p>So if i assigned <code>12.15</code> to a <strong>Float</strong> variable than, it will store <code>12.14999998</code> in that memory location and when i fetch that floating point number, it will fetch that number from that location and give it to me.</p>