[Issue 13469] x^^y wrong result
https://issues.dlang.org/show_bug.cgi?id=13469 Iain Buclaw changed: What|Removed |Added Status|NEW |RESOLVED CC||ibuc...@gdcproject.org Resolution|--- |INVALID --- Comment #3 from Iain Buclaw --- CTFE folds floating point expressions at the highest precision supported by target. This is not going to change. --
[Issue 13469] x^^y wrong result
https://issues.dlang.org/show_bug.cgi?id=13469 --- Comment #2 from Илья Ярошенко --- 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!) } --
[Issue 13469] x^^y wrong result
https://issues.dlang.org/show_bug.cgi?id=13469 --- Comment #1 from Don --- Are you sure this isn't just the difference in precision between double and real? The compile time values are done at 80 bit precision. The runtime pow() is done with 64 bit floats. --
[Issue 13469] x^^y wrong result
https://issues.dlang.org/show_bug.cgi?id=13469 Илья Ярошенко changed: What|Removed |Added Keywords||wrong-code --