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![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![Andrew Oliver](https://secure.gravatar.com/avatar/a41f89afff4c376e41107c9573b55881?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Andrew Oliver
3,687 PointsHow do I declare the variable planck NSNumber with the value 6.626!!?
I've tried everything I can think of!!
4 Answers
![Stone Preston](https://secure.gravatar.com/avatar/c2b2872f48c222732218df9be85e1ed2?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Stone Preston
42,016 Pointsyou need to use NSNumber literals. to assign an NSNumber literal you use the following syntax
NSNumber *someNumber = @25;
so to assign a literal to planck you would use:
NSNumber *planck = @6.626;
![Rebecca Wei](https://uploads.teamtreehouse.com/production/profile-photos/1696692/micro_photo.jpg)
Rebecca Wei
596 PointsIt took me forever to get this as well!! It will actually only accept the second way it showed to assign the value from the previous video, the first and third ways don't work.
![Ian Nebbiolo](https://secure.gravatar.com/avatar/ee03e12df860a698ea32103c5ef37b14?s=60&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Ian Nebbiolo
2,031 PointsJust had the same problem spent 5 minutes trying to workout why it didn't like my syntax before finding this forum post. Thank you :)
![Ivan Kvyatkovskiy](https://secure.gravatar.com/avatar/2cfee2ecda33d1e187c38b5aad16f184?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Ivan Kvyatkovskiy
5,743 PointsNSNumber *planck = [[NSNumber alloc] initWithFloat:6.626];
![Andrew Oliver](https://secure.gravatar.com/avatar/a41f89afff4c376e41107c9573b55881?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Andrew Oliver
3,687 PointsThanks but that's what I did and it's still telling me it's wrong.
![Ivan Kvyatkovskiy](https://secure.gravatar.com/avatar/2cfee2ecda33d1e187c38b5aad16f184?s=60&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Ivan Kvyatkovskiy
5,743 PointsSeems like that Code Challenge wants some specific syntax from you that was presented in previous videos. Check them out and retry.