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

VERIFIED INVALID

Status

--
minor
VERIFIED INVALID
12 years ago
9 years ago

People

(Reporter: cpeyer, Unassigned)

Tracking

Details

(Reporter)

Description

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

actual result: returns Infinity
expected result: 0

found on OSX and XP
(Reporter)

Comment 1

12 years ago
After additional research, this is expected.  Closing out.
Status: NEW → RESOLVED
Last Resolved: 12 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
(Reporter)

Comment 2

11 years ago
Transfer Bug from Core->Tamarin to Tamarin Product.
Component: Tamarin → Virtual Machine
Product: Core → Tamarin
Version: Trunk → unspecified
(Reporter)

Updated

9 years ago
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.