Skip to content

Instantly share code, notes, and snippets.

@thekarladam
Created December 29, 2010 19:25
Show Gist options
  • Save thekarladam/758930 to your computer and use it in GitHub Desktop.
Save thekarladam/758930 to your computer and use it in GitHub Desktop.
#import <Foundation/Foundation.h>
int main() {
CGFloat version = [@"4.2.1" floatValue];
NSLog(@"version: %f", version);
}
O2Machina:~ karl$ gcc main.m -o test -framework Foundation
O2Machina:~ karl$ ./test
2010-12-29 11:23:56.520 test[44124:903] version: 4.200000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment