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
nawlins34
24,783 PointsCan't get past, Print the result of the 'planck' variable using NSLog where the output should look like the following: "
This is the code I'm using,
NSNumber *foxtrot = @24;
foxtrot = [[NSNumber alloc] initWithInt:24];
NSLog(@"foxtrot%@", foxtrot);
NSNumber*planck = @ 6.626;
NSLog(@"planck%f", 6.626);
I keep getting, "That was the correct string, but not the correct format."
Please point out what I'm overlooking here. Thanks in advance!
2 Answers
nawlins34
24,783 PointsStill stuck on this one, anyone have an idea what I'm doing wrong here?
Matthew Delange
26,584 Pointsnawlins34 Not sure if your still stuck here or not but try this...
NSNumber *foxtrot = @24; NSLog(@"foxtrot %@", foxtrot); NSNumber *planck = @6.626; NSLog(@"planck %@", planck);
worked for me!!