• 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: 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.

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

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