• 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: sizeof float in Xcode debugger
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sizeof float in Xcode debugger


  • Subject: Re: sizeof float in Xcode debugger
  • From: Andy Lee <email@hidden>
  • Date: Mon, 23 Jun 2008 12:33:49 -0400

On Jun 23, 2008, at 11:37 AM, Michael McLaughlin wrote:
For instance, a float which, in memory, is

3F4D53D0

in both debuggers is rendered in the CodeWarrior debugger as

0.802060

but shows up in Xcode (GDB) as

0.802060127

From this I would simply assume the two debuggers choose a different level of precision for displaying floats. What happens if you print them in both environments with the following?


    NSLog(@"float is %.12f", myFloat);

I doubt that a float could really have nine sig. figs. as Xcode indicates

Why do you doubt this?

--Andy


_______________________________________________ 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: sizeof float in Xcode debugger
      • From: Jeffrey Oleander <email@hidden>
References: 
 >sizeof float in Xcode debugger (From: Michael McLaughlin <email@hidden>)

  • Prev by Date: Xcode include/import question (probably dumb)
  • Next by Date: Re: sizeof float in Xcode debugger
  • Previous by thread: sizeof float in Xcode debugger
  • Next by thread: Re: sizeof float in Xcode debugger
  • Index(es):
    • Date
    • Thread