Math question
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