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 Objective-C Basics (Retired) Foundation Framework NSNumber

The Quiz is telling me to check my planck value...I typed the float number it gave me correctly...what is the bug?

NSNumber *foxtrot; foxtrot = [[NSNumber alloc] initWithInt: 24]; NSLog(@"foxtrot %@\n", foxtrot); NSNumber *planck; planck = [[NSNumber alloc] initWithFloat: 6.626];

4 Answers

Based on some of the previous forums, your answer should work since they believed to have fixed it at one point. At any rate, you can also use the following format: NSNumber *(variable name) = @(value);

Hope this helps!

Thanks Gilberto!!! The quiz liked the code you provided me and I passed it. I can now move on to the next section! :)

Addison Francisco
Addison Francisco
9,561 Points

This worked for me too. Thanks, Gil Cornejo. They need to fix this though. I've had several problems with similar situations where I was dead on, but I could not advance.

Thanks Gilberto!!! The quiz liked the code you provided me and I passed it. I can now move on to the next section! :)