title: Preventing decimals with NSNumberFormatter
body: <p>I have an <code>NSNumberFormatter</code> which I'm trying to use to generate a whole number of GBP (£) from an <code>NSNumber</code>. I keep getting two decimal places regardless of which incantation I try. My code is:</p>
  <pre><code>NSNumberFormatter *fmtCurrency = [[[NSNumberFormatter alloc] init] autorelease];
  [fmtCurrency setNumberStyle: NSNumberFormatterCurrencyStyle];
  [fmtCurrency setGeneratesDecimalNumbers:FALSE];
  [fmtCurrency setCurrencyCode:@&quot;GBP&quot;];
  [fmtCurrency setCurrencySymbol:@&quot;£&quot;];
  txtTotal.text = [fmtCurrency stringFromNumber: result.Bill ]; // this is an NSNumber
  </code></pre>