cent and ucent?

Don Clugston dac at nospam.com
Mon Jan 30 10:01:53 PST 2012


On 30/01/12 18:06, Marco Leise wrote:
> Am 30.01.2012, 03:59 Uhr, schrieb H. S. Teoh <hsteoh at quickfur.ath.cx>:
>
>> On Sun, Jan 29, 2012 at 05:48:40PM -0800, Walter Bright wrote:
>>> On 1/29/2012 2:26 PM, Jonathan M Davis wrote:
>>> >long double is 128-bit.
>>>
>>> Sort of. It's 80 bits of useful data with 48 bits of unused padding.
>>
>> Really?! Ugh. Hopefully D handles it better?
>>
>>
>> T
>
>  From Wikipedia:
>
> "On the x86 architecture, most compilers implement long double as the
> 80-bit extended precision type supported by that hardware (sometimes
> stored as 12 or 16 bytes to maintain data structure alignment)."
>
> That's all there is to know I think.

Not quite all. An 80-bit double, padded with zeros to 128 bits, is 
binary compatible with a quadruple real.
(Not much use in practice, as far as I know).




More information about the Digitalmars-d mailing list