[Issue 13469] x^^y wrong result

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Sep 18 06:02:45 PDT 2014


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

--- Comment #2 from Илья Ярошенко <ilyayaroshenko at gmail.com> ---
You are right!

Any way CTFE^^ and Runtime^^ should be identical between each other and
std.math pow.


import std.math;
static assert(1.7^^1000 == double(1.7).pow(1000));//OK
void main() {
       assert(1.7^^1000 ==   real(1.7).pow(1000));//OK (but should fails!)
}

--


More information about the Digitalmars-d-bugs mailing list