On Oct 10, 2008, at 5:04 AM, Steven Hamilton wrote:
Am I totally misunderstanding something about floats? Or is the extra ##'s in the formatter making things up?
Floating point values of either float or double are not guaranteed to be super precise, and should never be used to represent currency values. Try using a long long instead, and have the first two digits represent a fractional unit of currency.
Nick Zitzmann <http://www.chronosnet.com/> _______________________________________________ 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 [EMAIL PROTECTED]