Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Sam Chaudry
25,519 PointsCode Challenge Objective C basics-numbers
Hi I'm stuck on this code challenge keeps saying check your value Can anybody point me in the right direction?
NSNumber*planck; planck=[[NSNumber alloc]initWithFloat:6.626]; NSLog(@"planck %@",planck);
3 Answers

Sam Chaudry
25,519 PointsGot it it was-just in case anyone else needs it
NSNumber *planck= @6.626;

agreatdaytocode
24,757 PointsSam, you need to us %lu not %@ for numbers. I think thats the problem.

Sam Chaudry
25,519 PointsI'm still getting an error for it not sure why

agreatdaytocode
24,757 PointsI'll jump into the change and see what I can find. :)

Sam Chaudry
25,519 PointsThanks Aaron-got the solution
agreatdaytocode
24,757 Pointsagreatdaytocode
24,757 PointsAwesome!