digitalmars.D.bugs - [Issue 21601] New: std.math : pow(float/double, -2) produces
- d-bugmail puremagic.com (22/22) Feb 01 2021 https://issues.dlang.org/show_bug.cgi?id=21601
https://issues.dlang.org/show_bug.cgi?id=21601 Issue ID: 21601 Summary: std.math : pow(float/double, -2) produces sometimes wrong result Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: normal Priority: P1 Component: phobos Assignee: nobody puremagic.com Reporter: bugzilla bernis-buecher.de Both unittests fail: import std.math : pow; unittest { assert(pow(-513645318757045764096.0f,-2) > 0.0); assert(pow(-1.6299717435255677e+154,-2) < 0.0); } --
Feb 01 2021