Bug 4023 – std.math.hypot() returns infinity when either argument is zero

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
Other
OS
All
Creation time
2010-03-28T07:23:00Z
Last change time
2014-02-15T02:45:02Z
Assigned to
nobody
Creator
bugzilla

Comments

Comment #0 by bugzilla — 2010-03-28T07:23:05Z
Both hypot(x, 0.0) and hypot(0.0, x) should return x. Instead, real.infinity is returned in both cases.
Comment #1 by clugdbug — 2010-04-09T19:23:21Z
Fixed DMD2.043.