title: How to avoid rounding off in NSNumberFormatter
body: <p>I am trying to have a number string with maximum 2 decimals precision, while rest decimals just trimmed off instead of rounding them up. For example:</p>
  
  <p><code>I have: 123456.9964</code></p>
  
  <p><code>I want: 123456.99 -&gt; Just want to trim rest of the decimal places</code></p>
  
  <p>What I have tried is:</p>
  
  <pre class="lang-cs prettyprint-override"><code>NSNumberFormatter *numberFormatter = [[NSNumberFormatter alloc] init];
  [numberFormatter setNumberStyle: NSNumberFormatterDecimalStyle];
  [numberFormatter setMaximumFractionDigits:2];
  NSString *numberAsString = [numberFormatter stringFromNumber:[NSNumber numberWithFloat: 123456.9964]];
   NSLog(@"%@", numberAsString);
  </code></pre>
  
  <p>There is nothing to set rounding mode as "none". What else can I do to maintain Decimal style formatting along with trimmed decimal digits? Any help will be appreciated. Thanks.</p>