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! While you're at it, check out some resources Treehouse students have shared here.

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

iOS

Sam Chaudry
Sam Chaudry
25,519 Points

Code 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
Sam Chaudry
25,519 Points

Got it it was-just in case anyone else needs it

NSNumber *planck= @6.626;

Awesome!

Sam, you need to us %lu not %@ for numbers. I think thats the problem.

Sam Chaudry
Sam Chaudry
25,519 Points

I'm still getting an error for it not sure why

I'll jump into the change and see what I can find. :)

Sam Chaudry
Sam Chaudry
25,519 Points

Thanks Aaron-got the solution