javascript-semantics icon indicating copy to clipboard operation
javascript-semantics copied to clipboard

Math.abs(-0) should be 0

Open deian opened this issue 5 years ago • 0 comments

Hi all, Great stuff. I think there is a bug in Math.abs:

https://github.com/kframework/javascript-semantics/blob/d5aca308d12d3838c645e1f787e2abc9257ce43e/stdlib/08.math.js#L5-L11

According to the spec, abs of -0 should be 0 not 0.

deian avatar Feb 16 '20 01:02 deian