Re: beginner question, NSNumber, NSDecimalAsNumber
Re: beginner question, NSNumber, NSDecimalAsNumber
- Subject: Re: beginner question, NSNumber, NSDecimalAsNumber
- From: Graham Cox <email@hidden>
- Date: Mon, 9 Nov 2009 21:56:56 +1100
On 09/11/2009, at 9:49 PM, Andy Lee wrote:
Won't this output the digits in reverse order?
Yes it will, but as I mentioned in an off-list message, the use of
putchar is probably not very useful for a real-world implementation
either, so you can compensate for the order when accumulating the
result into a string (or whatever).
I guess as a former hardware guy the heavy stack use for such a
trivial purpose just red-flagged me. Old habits die hard ;-)
--Graham
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden