Handling big FP numbers
    Murilo 
    murilomiranda92 at hotmail.com
       
    Sat Feb  9 02:46:52 UTC 2019
    
    
  
On Saturday, 9 February 2019 at 02:42:09 UTC, Adam D. Ruppe wrote:
> On Saturday, 9 February 2019 at 02:12:29 UTC, Murilo wrote:
>> prints
>
> Two likely reasons: the D compiler does compile time stuff at 
> 80 bit, whereas the C++ one probably uses 64 bit, and the D 
> default print rounds more aggressively than default C++ 
> printing.
>
> It is useful to put stuff in runtime variables of type `double` 
> to avoid the differnt bit stuff, and print with printf in both 
> languages to ensure that is the same.
Hi, thanks for the information. But I used the type double in D 
which is supposed to be only 64 bits long and not 80 bits long, 
the type real is the one which is supposed to be 80 bits long. 
Right?
    
    
More information about the Digitalmars-d-learn
mailing list