Re: sizeof float in Xcode debugger
Re: sizeof float in Xcode debugger
- Subject: Re: sizeof float in Xcode debugger
- From: Thomas Davie <email@hidden>
- Date: Mon, 23 Jun 2008 22:50:17 +0200
I doubt that a float could really have nine sig.
figs. as Xcode indicates
Why do you doubt this?
Because a 32-bit word can generally only
give you just less than 7 reliable decimal
digits from a floating-point number.
You usually have to go to 60 or 64 bits
to get from 7 to about 15 decimal digits.
Of course, that depends a little on how
you divvy up the bits into exponent and
mantissa, but these are the practical /
empirical limits I recall.
Not being accurate at this level does not mean that it cannot
represent any number to this precision -- merely that it can't
represent *all* numbers at this precision.
It is after all possible to represent 2^−149 to 44 decimal places
using 00000000000000000000000000000001.
Bob _______________________________________________
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