Force usage of double (instead of higher precision)
Stefan Koch via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri Jun 30 09:39:16 PDT 2017
On Friday, 30 June 2017 at 16:29:22 UTC, kinke wrote:
> On Friday, 30 June 2017 at 16:21:18 UTC, kinke wrote:
>> CTFE only (incl. parsing of literals). Just make sure you
>> don't happen to call a std.math function only accepting reals;
>> I don't know how many of those are still around.
>
> Oh, apparently most still are. There are even some mean
> overloads for double/float only casting and forwarding to the
> `real` implementation.
That is not a problem.
The only problem is that the excess is not discarded at the end.
Which is because of the design of the constant-folder.
More information about the Digitalmars-d-learn
mailing list