Created
July 15, 2011 03:42
-
-
Save afrael/1084018 to your computer and use it in GitHub Desktop.
Objective C float creation helper
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define FLT(x) [NSNumber numberWithFloat:x] | |
// use as | |
NSArray *keys = [NSArray arrayWithObjects: FLT(-2.0), FLT(-1.85), FLT(-1.75), nil]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment