• 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
Can anyone explain this?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Can anyone explain this?


  • Subject: Can anyone explain this?
  • From: Roland Silver <email@hidden>
  • Date: Fri, 12 Sep 2008 16:31:45 -0400

Can anyone explain this?
The value of the expression is apparently different from the value of a variable assigned to that expression:


double pitch = A0Pitch * pow(2.0, ntones/ currentTonesPerOctave(voice)) ;
NSLog(@"expression value: %f", A0Pitch * pow(2.0, ntones/ currentTonesPerOctave(voice)));
2008-09-12 16:25:08.095 AttoComp[10566:813] pitch value: 28.305812
NSLog(@"variable value: %f", pitch);
2008-09-12 16:25:08.094 AttoComp[10566:813] pitch variable: nan


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Can anyone explain this?
      • From: Peter Ammon <email@hidden>
  • Prev by Date: Re: Newb: Targeting an instance of a class instantiated by a NIB file
  • Next by Date: Re: Newb: Targeting an instance of a class instantiated by a NIB file
  • Previous by thread: Re: Transparent Background for a Progress Indicator (NSView)
  • Next by thread: Re: Can anyone explain this?
  • Index(es):
    • Date
    • Thread