sqrt(2) must go

Timon Gehr timon.gehr at gmx.ch
Thu Oct 20 02:12:34 PDT 2011


On 10/20/2011 05:34 AM, dsimcha wrote:
> On 10/19/2011 10:57 PM, Robert Jacques wrote:
>> Also, 5_000_000_000 does not fit, exactly inside a double.
>
> Yes it does. Doubles can hold integers exactly up to 2 ^^ 53.
>
> http://en.wikipedia.org/wiki/Double_precision_floating-point_format

5_000_000_000 even fits exactly into a IEEE 734 32-bit _float_.


More information about the Digitalmars-d mailing list