Re: NOT solved: using long double math functions like sinl() with Cocoa
Re: NOT solved: using long double math functions like sinl() with Cocoa
- Subject: Re: NOT solved: using long double math functions like sinl() with Cocoa
- From: Nir Soffer <email@hidden>
- Date: Fri, 12 Jan 2007 08:27:44 +0200
On Jan 12, 2007, at 01:59, Dr. Rolf Jansen wrote:
#include <stdio.h>
#include <math.h>
int main (int argc, const char * argv[])
{
printf("%f\n%Lf", sin(1.5707963267948966), // pi/2
sinl(1.57079632679489661923132169163974L));
return 0;
}
This run fine on G5. Create new Foundation tool with this main.m:
#import <Foundation/Foundation.h>
int main (int argc, const char * argv[]) {
assert(sin(1.5707963267948966) == sinl
(1.57079632679489661923132169163974L));
return 0;
}
Seems like printf formatting issue.
Best Regards,
Nir Soffer
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden