Closed Bug 364486 Opened 18 years ago Closed 18 years ago

Math.pow(0, negative exponent) returns infinity instead of NaN/undefined

Categories

(Tamarin Graveyard :: Virtual Machine, defect)

defect
Not set
minor

Tracking

(Not tracked)

VERIFIED INVALID

People

(Reporter: cpeyer, Unassigned)

Details

code:
print(Math.pow(0,-200));  // or any other negative exponent

actual result: returns Infinity
expected result: 0

found on OSX and XP
After additional research, this is expected.  Closing out.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → INVALID
Summary: Math.pow(0, negative exponent) returns infinity instead of 0 → Math.pow(0, negative exponent) returns infinity instead of NaN/undefined
Transfer Bug from Core->Tamarin to Tamarin Product.
Component: Tamarin → Virtual Machine
Product: Core → Tamarin
Version: Trunk → unspecified
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.