title: Change float to desired format in an NSPredicate filter part
body: <p>Here's what I got:</p>
  
  <pre><code>NSPredicate *predicate=[NSPredicate predicateWithFormat:@"pressure=%f",
                                                   [self.txtInput.text floatValue]];
  </code></pre>
  
  <p>Is there a way I can format the "pressure" property so that it matches the float value of whatever is input to a text box? For instance, there's an object with a pressure value of 2504.6 and I input 2504.6 to the text box. But as I convert the text to float it turns to 2504.600098. As 2504.6 does not equal 2504.600098 I don't get right result from filtering.Precisions of the properties differ,so I cannot compare them to a certain format.</p>