title: NSNumberFormatter numberFromString returns null
body: <p>Here's my code</p>
  
  <pre><code>NSNumberFormatter *currencyStyle = [[NSNumberFormatter alloc] init];
  
      [currencyStyle setFormatterBehavior:NSNumberFormatterBehavior10_4];
      [currencyStyle setNumberStyle:NSNumberFormatterCurrencyStyle];
  
      NSNumber *amount = [[NSNumber alloc] init];
  
      NSLog(@"the price string is %@", price);
  
      amount = [currencyStyle numberFromString:price];
  
      NSLog(@"The converted number is %@",[currencyStyle numberFromString:price]);
      NSLog(@"The NSNumber is %@", amount);
  
      NSLog(@"The formatted version is %@", [currencyStyle stringFromNumber:amount]);
  
      NSLog(@"--------------------");
      self.priceLabel.text = [currencyStyle stringFromNumber:amount]; 
  
      [amount release];
      [currencyStyle release];
  </code></pre>
  
  <p>This is what the log spits out</p>
  
  <p>the price string is 5
  The converted number is (null)
  The NSNumber is (null)
  The formatted version is (null)</p>
  
  <p>Am I missing something?</p>
  
  <p>EDIT: Updated code</p>
  
  <pre><code>NSNumberFormatter *currencyStyle = [[NSNumberFormatter alloc] init];
      [currencyStyle setFormatterBehavior:NSNumberFormatterBehavior10_4];
      [currencyStyle setNumberStyle:NSNumberFormatterCurrencyStyle];
  
      NSNumber *amount = [currencyStyle numberFromString:price];
  
      NSLog(@"the price string is %@", price);
      NSLog(@"The converted number is %@",[currencyStyle numberFromString:price]);
      NSLog(@"The NSNumber is %@", amount);
      NSLog(@"The formatted version is %@", [currencyStyle stringFromNumber:amount]);
      NSLog(@"--------------------");
  
      self.priceLabel.text = [NSString stringWithFormat:@" %@ ", [currencyStyle stringFromNumber:amount]]; 
  
      [currencyStyle release];
  </code></pre>