• 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: NSTimer or double to int cast (Bug?)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTimer or double to int cast (Bug?)


  • Subject: Re: NSTimer or double to int cast (Bug?)
  • From: Chris Ridd <email@hidden>
  • Date: Sat, 11 Jan 2003 08:47:15 +0000

On 10/1/03 8:03 pm, Chris Kane <email@hidden> wrote:
> On Friday, January 10, 2003, at 07:49 AM, Chris Ridd wrote:
>> You're passing a double to NSLog but only using the %f (float) format
>> specifier. That doesn't address the fact that value does seem to be
>> less
>> than 1, but it might be worth seeing if using %lf made a difference.
>
> %f is for doubles, as is %e and %g. All floats are promoted to doubles
> in C/ObjC when they occur in the varargs region of a function call with
> varargs (as with printf()).

I stand corrected!

Cheers,

Chris
_______________________________________________
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: 
 >Re: NSTimer or double to int cast (Bug?) (From: Chris Kane <email@hidden>)

  • Prev by Date: Re: Notes about WebCore
  • Next by Date: Re: Aqua Human Interface and Safari
  • Previous by thread: Re: NSTimer or double to int cast (Bug?)
  • Next by thread: Re: NSTimer or double to int cast (Bug?)
  • Index(es):
    • Date
    • Thread