• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: doubles not behaving
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: doubles not behaving


  • Subject: Re: doubles not behaving
  • From: Sherm Pendley <email@hidden>
  • Date: Sun, 13 Jun 2004 01:17:31 -0400

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;

num = [serial doubleValue];

NSLog(@"Serial = %d", num);

%d is the format specifier for ints and long ints. %f is for floats and doubles.

sherm--
_______________________________________________
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.


References: 
 >doubles not behaving (From: Kodex <email@hidden>)

  • Prev by Date: Re: Yet more random number woes!
  • Next by Date: [solved] RE: using SystemConfiguration framework
  • Previous by thread: Re: doubles not behaving
  • Next by thread: RE: doubles not behaving
  • Index(es):
    • Date
    • Thread