[Issue 21688] CTFE has floats and doubles that exceed float.max and double.max

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Mar 8 19:18:31 UTC 2021


https://issues.dlang.org/show_bug.cgi?id=21688

--- Comment #5 from Berni44 <bugzilla at bernis-buecher.de> ---
(In reply to Iain Buclaw from comment #4)
> I think this is a duplicate of issue 9937.

Yes, maybe. 

In my opinion, the whole idea of a) having different reals and b) using them
internally for better precision is questionable. It sounds good in theory; in
practice (with a little bit of exaggeration) the results can be used as seeds
in random number generators... ;-)

Not to get me wrong: Each of these two ideas might be useful on its own (*) -
it's the combination of the two, that produces headaches. At least, I wish
there were a possibility for the programmer to decide if reals should be used
for calculation or not.

But probably, this discussion is beyond this bug report...

(*) If only a) is present, the programmer can decide, not to use reals. If only
b) is present, the result of computations is still predictable (in a certain
range, like usual with floating points).

--


More information about the Digitalmars-d-bugs mailing list