note
syphilis
<I>Do the different long double types have differing ranges?</I><br><br>
Yes, but we don't need to know anything about the range for the task at hand.<br>
We just need to know the maximum number of bits of precision for each type, and the number of decimal digits required to accurately handle each of those maximum precisions.<br>
That is:<br>
53 bits needs 17 decimal digits<br>
64 bits needs 21 decimal digits<br>
113 bits needs 36 decimal digits<br><br>
The DoubleDouble can actually accommodate some (not all) 2098-bit values - which would require 633 decimal digits, but I'm still pondering what should be done about that.<br>
I doubt that<c>"%.632" NVgf</c> will produce reliable results anyway.<br>
Unpacking the bytes of the NV is probably cheaper and quicker than obtaining a numeric value, so maybe that's a better path to take for *all* NVs - not just the DoubleDouble.
<br><br>Cheers,<br>Rob
11104628
11104676