• 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
pow() function returning different results under Rosetta
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

pow() function returning different results under Rosetta


  • Subject: pow() function returning different results under Rosetta
  • From: "Cianflone, Chris" <email@hidden>
  • Date: Thu, 12 Jan 2006 16:54:05 -0600
  • Thread-topic: pow() function returning different results under Rosetta

Title: pow() function returning different results under Rosetta

Hi all,

I hope this is the most appropriate list for this question.  We have run into a situation which is a critical issue for us on our currently shipping application running under Rosetta on a 10.4.3 DTK system.  An important part of our system is failing because pow() is returning different results between our PPC app running on a PPC machine, and the same PPC app running on the Intel DTK machine under Rosetta:

PPC on PPC:
unsigned long long value = pow( 31, 4 ); // value is 923521 (correct answer)

PPC on Intel (DTK system) with Rosetta:
unsigned long long value = pow( 31, 4 ); // value is 923520

And just for fun I tried a similar test on /Applications/Calculator:

Intel on Intel (DTK system):
31 ^ 4 = 923521

PPC on Intel (DTK system) with Rosetta:
31 ^ 4 = 923520.99999999953

Any chance this is fixed in the version of Rosetta that will ship with the new machines? We of course would like to test this on the newly announced Intel machines, but all we can do currently is wait for our ordered machines to arrive, hopefully before our customers get them :)

(And yes, we have a way to fix this using an integer version of pow(), which it should have been originally, but I am just maintaining old code and we are concerned about our currently shipping products.)

Thanks,
Chris

Chris Cianflone
MakeMusic, Inc.
www.makemusic.com

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: pow() function returning different results under Rosetta
      • From: Eric Albert <email@hidden>
  • Prev by Date: project templates
  • Next by Date: Quotes not persisting in Project Settings
  • Previous by thread: Re: project templates
  • Next by thread: Re: pow() function returning different results under Rosetta
  • Index(es):
    • Date
    • Thread