Re: arithmetic in Cocoa
Re: arithmetic in Cocoa
- Subject: Re: arithmetic in Cocoa
- From: "Alastair J.Houghton" <email@hidden>
- Date: Fri, 4 Jul 2003 15:49:01 +0100
On Friday, July 4, 2003, at 03:24 pm, Cyprien 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?
What's wrong with just writing it in C (like it is above)? It will
still work just fine; Objective C is a *superset* of, not a replacement
for, C.
Kind regards,
Alastair.
_______________________________________________
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.