I am totally new to the whole Obj-C/XCode/IB world, and at the moment, I'm just playing around with some simple i/o stuff. I am wanting to put a double value number into a string. Here's the code I'm trying to use at the moment:
The output, however, shows up as "You're double value is 133744594".
Is it possible to do what I'm trying to do? I've been able to get all the other data types to work (namely int and float) as I would expect them to behave.
Any help for this complete noob would be appreciated...
Code:
double value = 123.45678901;
NSString *myString = [NSString stringWithFormat:@"You're double value is %d", value];
[outputTextField setString:myString];
The output, however, shows up as "You're double value is 133744594".
Is it possible to do what I'm trying to do? I've been able to get all the other data types to work (namely int and float) as I would expect them to behave.
Any help for this complete noob would be appreciated...