• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: arithmetic in Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >arithmetic in Cocoa (From: Cyprien <email@hidden>)

  • Prev by Date: Re: arithmetic in Cocoa
  • Next by Date: Re: arithmetic in Cocoa
  • Previous by thread: Re: arithmetic in Cocoa
  • Next by thread: Re: arithmetic in Cocoa
  • Index(es):
    • Date
    • Thread