Re: flummoxed by math failure
Re: flummoxed by math failure
- Subject: Re: flummoxed by math failure
- From: "Angela Brett" <email@hidden>
- Date: Wed, 23 Jul 2003 11:47:51 +1200 (NZST)
>
NSDecimalNumber *t;
>
t = [[self hours] decimalNumberByMultiplyingBy:[self rate]]; //
>
withBehavior:numBehavior];
>
NSLog([NSString stringWithFormat:@"%@ X %@ = %@", [hours description],
>
[rate description], [t description]]);
>
>
Run through twice produces:
>
>
2003-07-22 16:43:50.888 Work Timer[8128] 1 X 100 = 0
>
2003-07-22 16:43:50.888 Work Timer[8128] 2 X 100 = 0
I realise this is just a cut-down version of the problem so it's probably
not the exact code, but is it possible that rate and hours differ from
[self rate] and [self hours] used in the calculation?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.