Closed Bug 424461 Opened 17 years ago Closed 17 years ago

[builtins] Math.min and Math.max don't distinguish between -0 and 0

Categories

(Tamarin Graveyard :: Virtual Machine, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED DUPLICATE of bug 401095

People

(Reporter: lhansen, Unassigned)

Details

Undiagnosed whether this is a problem with ESC not handling -0 properly or whether Math.min(0,-0) does not handle -0 properly. This should be -Infinity: es> print(Infinity/Math.min(0,-0)) Infinity
Clearly this is a problem with Math.min, since: es> print(Infinity/-0) -Infinity Math.max is just as bad: es> print(Infinity/Math.max(-0,0)) -Infinity
Summary: Negative zero woes → Math.min and Math.max don't distinguish between -0 and 0
Summary: Math.min and Math.max don't distinguish between -0 and 0 → [builtins] Math.min and Math.max don't distinguish between -0 and 0
Component: Self-hosting compiler (ESC) → Virtual Machine
This is caused by the same reason as bug 401095.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → DUPLICATE
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.