title: Creating NSNumber from another NSNumber behavior?
body: <p>I'm trying to insert an NSNumber as a float value, into an NSArray, containing the floatValue from another NSNumber.  I'm able to create the array fine, but when I access the object, it appears to only be an integer?  I would expect that [NSNumber numberWithFloat:n] would generate a normal NSNumber with a float value..</p>
  
  <pre><code>int myInteger = 3;
  NSNumber *myNum = [NSNumber numberWithInt:myInteger];
  NSArray *arr = [NSArray arrayWithObjects:[NSNumber numberWithFloat:[myNum floatValue]], nil];
  NSLog(@"%@", [arr objectAtIndex:0]);
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>2012-01-09 16:39:32.664 ObjectiveCSandbox[2961:707] 3
  </code></pre>
  
  <p>Additionally, I am able to use the %i pointer fine, and when I try and use the %f pointer in NSLog, the app crashes completely.  What is going on here?  This question is more academic than anything.</p>