issue 7006 - std.math.pow (integral, integral) crashes on negative exponents
Ola Fosheim Grøstad
ola.fosheim.grostad at gmail.com
Tue Dec 17 19:12:00 UTC 2019
On Tuesday, 17 December 2019 at 18:41:01 UTC, Ola Fosheim Grøstad
wrote:
> On Tuesday, 17 December 2019 at 17:31:41 UTC, Timon Gehr wrote:
>> Haha. pow(0.0,0.0) is either 1.0 or NaN, but pow(1.0,∞) is
>> guaranteed to be 1.0.
Besides, that is not what it said on the page. It said that 0^0
may lead to a domain error. Which is reasonable for implementors,
but it also referred to IEC60559 which set x^0 to 1.0 even if the
base is NaN.
The goal of ISO standards is to codify and streamline existing
practices for better interoperability, C++ is an ISO standard.
More information about the Digitalmars-d
mailing list