Re: doubles not behaving
Re: doubles not behaving
- Subject: Re: doubles not behaving
- From: Gregory Weston <email@hidden>
- Date: Sun, 13 Jun 2004 11:25:36 -0400
On Jun 13, 2004, at 10:03 AM, Sherm Pendley wrote:
On Jun 13, 2004, at 12:38 AM, Kodex wrote:
Ok, maybe i am missing something here but why does
this not output the same thing as the input?
double num = [serial doubleValue];
NSLog(@"Serial = %d", num);
%d is the format specifier for ints and long ints. %f is for floats and
doubles.
%f is for floats.
%lf is for doubles.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.