sizeof float in Xcode debugger
sizeof float in Xcode debugger
- Subject: sizeof float in Xcode debugger
- From: Michael McLaughlin <email@hidden>
- Date: Mon, 23 Jun 2008 11:37:44 -0400
- Thread-topic: sizeof float in Xcode debugger
I am porting an old, legacy app (pure C) from CodeWarrior to an Xcode (PPC)
CoreServices app. The code compiles in both cases but shows some
discrepancies. In trying to track down the latter, I note that float
variables show up differently in the respective debuggers.
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
Subsequent computations seem to indicate that this difference propagates
throughout the rest of the program.
I doubt that a float could really have nine sig. figs. as Xcode indicates
and wonder if some garbage might be getting included somehow.
Thoughts? Hints as to where to look?
TIA.
--
Mike McLaughlin
_______________________________________________
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