Re: NSTimer or double to int cast (Bug?)
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.