Re: arithmetic in Cocoa
Re: arithmetic in Cocoa
- Subject: Re: arithmetic in Cocoa
- From: Marc Weil <email@hidden>
- Date: Fri, 04 Jul 2003 10:50:58 -0400
There's no need to "translate" this into Objective-C. Just include <math.h>
in your source file (yes, it can be a .m source file) and that code will
work just fine. Objective-C is nothing more than a group of add-ons to the C
language.
- Marc
On 7/4/03 10:24 AM, "Cyprien" <email@hidden> wrote:
>
How do you translate a Formula like this one in Objective-C?
>
>
k = 2*round(N/Fs*Fin/2) + 1
>
>
Do I really have to use method such as NSDecimalRound() and so on to
>
calculate this?
>
>
Cyprien
>
_______________________________________________
>
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.
_______________________________________________
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.