On 10.10.2008, at 13:04, Steven Hamilton wrote:
NSLog(@"current balance is: %@",balance);

and get

current balance is: 18976.69

in the console. So far so good.

(...) The float calculation is exactly 2 decimal places, I know that for a fact and NSLog proves it.

You may want to be aware that NSLog gives no guarantees as to the output of its formats if you use [EMAIL PROTECTED] All it does is call the - description method of the requisite object. -description is only intended for debugging, and as such what it returns for a particular object may change from release to release, or even from instance to instance (e.g. when you log an NSArray, you occasionally get more detailed output than when logging a toll-free-bridged CFArrayRef).

Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de





_______________________________________________

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]

Reply via email to