double.min - should be 5e-324?

Dmitry Olshansky dmitry.olsh at gmail.com
Sat Dec 4 13:52:09 PST 2010


On 05.12.2010 0:48, so wrote:
>> writeln(r2);//2.22507e-308, wtf ?
>
> What is wrong? It is the smallest representable double. not (-double.max)

The smallest is 5e-324 as I (hopefully) showed.

>
>> r2 /= 2.0;
>> writeln(r2);// 1.11254e-308, a logical consequence of above
>
> That is something weird, you get a double smaller than the smallest 
> representable!
>

To prove the above point.

-- 
Dmitry Olshansky



More information about the Digitalmars-d mailing list