• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: flummoxed by math failure
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >flummoxed by math failure (From: Dean Tresner <email@hidden>)

  • Prev by Date: are nsstrings internally locked?
  • Next by Date: Re: Subclassing NSPort (or NSSocketPort)
  • Previous by thread: flummoxed by math failure
  • Next by thread: Re: flummoxed by math failure
  • Index(es):
    • Date
    • Thread