title: Divide equation with NSPredicate (Objective C, iOS)
body: <p>Here is an example how to do it with NSPredicate:</p>
  
  <pre><code>    NSPredicate *p = [NSPredicate predicateWithFormat:@"1+2==3"];
      NSLog(@"%d", [p evaluateWithObject:nil]);
      p = [NSPredicate predicateWithFormat:@"1+2==4"];
      NSLog(@"%d", [p evaluateWithObject:nil]);
  </code></pre>
  
  <p>The first NSLog produces 1 because 1+2==3 is true; the second produces 0.</p>
  
  <p>The problem is when the equation is</p>
  
  <pre><code>1/3==2/3
  </code></pre>
  
  <p>the statement will be true but 1/3 isn't equal to 2/3
  how do I fix this?</p>