Re: sizeof float in Xcode debugger
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