title: Conversion of strings to integers on arm64?
body: <p>I've got a small chunk of code which I've noticed is behaving differently for <code>arm64</code> targets. I'm fetching a numeric string from JSON data, and then using <code>integerValue</code> to convert the string to an integer. The string generally has thousands separators, in the form of a comma. </p>
  
  <p>On non-64bit targets, (iPhone 4/s, 5/s, etc), everything works perfectly and I get the correct integer regardless of whether there is a comma separating the thousands. However, on <code>arm64</code>, <code>integerValue</code> only returns the first "chunk" of numbers, before the separator comma. I've included the code and a sample result to show what exactly is happening:</p>
  
  <pre><code>NSInteger value = [BTCValue integerValue];
  [UIApplication sharedApplication].applicationIconBadgeNumber = value;
  </code></pre>
  
  <p>For example, on non-64bit targets:
  <code>BTCValue = @"54,321.00"</code> and <code>value = 54321</code>.</p>
  
  <p>On arm64 targets, however:
  <code>BTCValue = @"54,321.00"</code> and <code>value = 54</code>.</p>
  
  <p>It doesn't seem to matter whether <code>value</code> is an int or an NSInteger, the same thing happens regardless. Is there something that I'm missing? I don't understand why everything works properly on armv7 but not arm64.</p>