• 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
Double Fun
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Double Fun


  • Subject: Double Fun
  • From: Steve Cronin <email@hidden>
  • Date: Mon, 6 Feb 2006 15:19:14 -0600

Folks;

Could some merciful person take away my misery here:

double totalSellPrice, xtnSell, pct;
totalSellPrice = [[self totalSellingPrice] doubleValue];
NSLog(@"sellPrice = %f", totalSellPrice);
  if ( totalSellPrice != 0 ) {
     xtnSell = [[self extendedSellingPrice] doubleValue];
     NSLog(@"ExtndSell = %f",xtnSell);
     pct = (xtnSell/ totalSellPrice) * 100.00;
     NSLog(@"Percent = %f",pct);
...

Results in these log entries:

2006-02-06 15:05:11.110 ABC[18600] sellPrice = 3888.407600
2006-02-06 15:05:11.110 ABC[18600] ExtndSell = 84.018060
2006-02-06 15:05:11.110 ABC[18600] Percent = 300.0000

Thanks!
Steve
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Double Fun
      • From: Andrew Thompson <email@hidden>
    • Re: Double Fun
      • From: Jed Soane <email@hidden>
    • Re: Double Fun
      • From: Brett Powley <email@hidden>
  • Prev by Date: [ANN] UKCrashReporter 0.1
  • Next by Date: Re: Double Fun
  • Previous by thread: Re: [ANN] UKCrashReporter 0.1
  • Next by thread: Re: Double Fun
  • Index(es):
    • Date
    • Thread