<p>Total newbie question but this is driving me mad! 
I'm trying this:</p>

<pre><code>myInt = [myFloat integerValue]; 
</code></pre>

<p>but I get an error saying essentially integerValue doesn't work on floats.  </p>

<p>How do I do it?</p>

what's wrong with:
```
```
int myInt = myFloat;
```
```
bear in mind this'll use the default rounding rule, which is towards zero (i.e. -3.9f becomes -3)