Re: Trigonometric Problem, Particularly tan() Function
Re: Trigonometric Problem, Particularly tan() Function
- Subject: Re: Trigonometric Problem, Particularly tan() Function
- From: Jens Alfke <email@hidden>
- Date: Sun, 13 Jul 2008 11:36:27 -0700
On 13 Jul '08, at 7:10 AM, Michael Vannorsdel wrote:
I don't think it's the cause but you should probably use tanf to
avoid value casting to and from a double.
Rather, he should be using double instead of float, since he needs
more precision. As one of the other Michaels on this thread pointed
out, floats only have 23 bits of precision in the mantissa, while
doubles have something like 47.
—Jens
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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