Link to home
Start Free TrialLog in
Avatar of easttncs
easttncs

asked on

Simple NSLog Question

I have a simple question. I am just trying to display the output of a hex value defined like this...

myNumber = [NSNumber numberWithLong: 0xabcdef];
NSLog(@"lx", [myNumber longValue]);

and I expect the output to be...

abcdef

instead I get this...

lx

What am I missing?
 
ASKER CERTIFIED SOLUTION
Avatar of AJVienna
AJVienna

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial