title: NSPredicate - compare with a rounded int
body: <p>I am currently using the following NSPredicate to sort an array I have:</p>
  
  <pre><code>        [filteredResults filterUsingPredicate:[NSPredicate predicateWithFormat:@"note.intValue &gt;= %ld", rating]];
  </code></pre>
  
  <p>Basically, the <code>note</code> element goes from 1 to 5, but it's not an int, it's a float that can be 4.5, or 4.75, or 4.2. The <code>rating</code> object, on the other hand, is an int: it's either 1, 2, 3, 4 or 5. What I would like to achieve is that if <code>note</code> is 4.75, it should be kept in the sorting if <code>rating</code> is 5.
  In other words, I would like to compare <code>rating</code> to <code>note</code>, but rounded to the closest half.</p>
  
  <p>Is there any way to achieve this while keeping the extremely simple and useful NSPredicate syntax?</p>