issue 7006 - std.math.pow (integral, integral) crashes on negative exponents
Timon Gehr
timon.gehr at gmx.ch
Tue Dec 17 19:41:22 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.
>
> The limits for 0^0 does not exist and floating point does not
> represent exactly zero, but approximately 0.
That's precisely why it is funny that the two cases are handled
differently!
More information about the Digitalmars-d
mailing list