On Tuesday, 5 May 2020 at 14:15:03 UTC, H. S. Teoh wrote:
On Tue, May 05, 2020 at 01:44:18PM +, WebFreak001 via
Digitalmars-d-learn wrote:
[...]
Whoa, hold your horses right there! What does `pragma(msg,
real.dig);`
output on your machine?
[...]
You are right, probably should have do
I can't even reproduce the 'missing' digits. On run.dlang.io,
i.e., on Linux x64 (and so x87 real), I get an identical output
for both DMD and LDC:
void main()
{
import core.stdc.stdio, std.math;
printf("%.70Lf\n", PI);
printf("%.70Lf\n", PI_2);
printf("%La\n", PI);
printf("
On Tue, May 05, 2020 at 01:44:18PM +, WebFreak001 via Digitalmars-d-learn
wrote:
> I was dumping the full PI value on my machine with the highest
> precision it could get and got:
>
> $ rdmd --eval='printf("%.70llf\n", PI)'
> 3.14159265358979323851280895940618620443274267017841339111328125000
I was dumping the full PI value on my machine with the highest
precision it could get and got:
$ rdmd --eval='printf("%.70llf\n", PI)'
3.14159265358979323851280895940618620443274267017841339111328125
now this all looks good, but when I tried to print PI_2 I got
$ rdmd --eval='printf("%