On Jan 19, 2009, at 11:57 AM, Brian Slick wrote:
On Jan 19, 2009, at 11:17 AM, mmalc Crawford wrote:
On Jan 19, 2009, at 6:10 AM, julius wrote:
But there is nothing here that looks anything like it would allow me to intialise with a numeric value like 23.30.
It's not clear why, throughout, you have ignored:
(a) initWithMantissa:exponent:isNegative:
In my case, when I went through almost exactly the same gyration that julius describes a while ago, I didn't know what a mantissa was, and I have a decent math and engineering background.

Discussion
The arguments express a number in a type of scientific notation that requires the mantissa to be an integer. So, for example, if the number to be represented is 1.23, it is expressed as 123x10^–2—mantissa is 123; exponent is –2; and isNegative, which refers to the sign of the mantissa, is NO.

<http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSDecimalNumber_Class/Reference/Reference.html#//apple_ref/occ/instm/NSDecimalNumber/initWithMantissa:exponent:isNegative: >


<http://www.google.com/search?hl=en&client=safari&rls=en-us&sa=X&oi=spell&resnum=1&ct=result&cd=1&q=mantissa&spell=1 >
-> <http://en.wikipedia.org/wiki/Significand>

mmalc

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to