fork(2) download
  1. #import <Foundation/Foundation.h>
  2.  
  3. int main() {
  4. NSAutoreleasePool *pool = [NSAutoreleasePool new];
  5. NSNumber *comoInt = [NSNumber numberWithInt:42];
  6. float comoFloat = [comoInt floatValue];
  7. NSLog(@"%.2f", comoFloat);
  8. NSString *comoString = [comoInt stringValue];
  9. NSLog(@"%@", comoString);
  10. [pool drain];
  11. return 0;
  12. }
  13.  
  14.  
Success #stdin #stdout #stderr 0.03s 42824KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
2016-05-01 20:09:19.867 prog[5720] 42.00
2016-05-01 20:09:19.868 prog[5720] 42