• 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
Math question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Math question


  • Subject: Math question
  • From: email@hidden
  • Date: Sat, 1 Sep 2001 16:34:50 -0500

Hello all. i have a question about math in Cocoa. how do i do higher level math? obviously i can do the basics */+-% without problem. but what about doing things like raising a number to a power? i've looked over the foundation functions like NSDecimalPower. i understand everything about how to use them except how to generate the NSDecimal i need. NSDecimal isn't a class, it's structure. how to i set it to a number? i thought about using NSDecimalNumber (a class) and using its function to return an NSDecimal for use in the NSDecimalPower function, but still i can't figure out how to set it up first. there must be something really easy i'm overlooking. thanks for your help in advance.

Jason M


  • Follow-Ups:
    • Re: Math question
      • From: "Todd Heberlein" <email@hidden>
    • Re: Math question
      • From: "John C. Randolph" <email@hidden>
  • Prev by Date: Higher-quality scaling of NSImages?
  • Next by Date: NSWindow order back and stay, dammit!
  • Previous by thread: Re: NSView requisites in java documentation
  • Next by thread: Re: Math question
  • Index(es):
    • Date
    • Thread