Title: Math.abs(-0) should be 0 · Issue #4 · kframework/javascript-semantics · GitHub
Open Graph Title: Math.abs(-0) should be 0 · Issue #4 · kframework/javascript-semantics
X Title: Math.abs(-0) should be 0 · Issue #4 · kframework/javascript-semantics
Description: Hi all, Great stuff. I think there is a bug in Math.abs: javascript-semantics/stdlib/08.math.js Lines 5 to 11 in d5aca30 Math.abs = function (x) { x = @ToNumber(x); if (x < 0) return -x; else return x; }; According to the spec, abs of -0...
Open Graph Description: Hi all, Great stuff. I think there is a bug in Math.abs: javascript-semantics/stdlib/08.math.js Lines 5 to 11 in d5aca30 Math.abs = function (x) { x = @ToNumber(x); if (x < 0) return -x; else retur...
X Description: Hi all, Great stuff. I think there is a bug in Math.abs: javascript-semantics/stdlib/08.math.js Lines 5 to 11 in d5aca30 Math.abs = function (x) { x = @ToNumber(x); if (x < 0) return -x; else re...
Opengraph URL: https://github.com/kframework/javascript-semantics/issues/4
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Math.abs(-0) should be 0","articleBody":"Hi all, Great stuff. I think there is a bug in Math.abs:\r\n\r\nhttps://github.com/kframework/javascript-semantics/blob/d5aca308d12d3838c645e1f787e2abc9257ce43e/stdlib/08.math.js#L5-L11\r\n\r\nAccording to the spec, abs of -0 should be 0 not 0.","author":{"url":"https://github.com/deian","@type":"Person","name":"deian"},"datePublished":"2020-02-16T01:39:44.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/4/javascript-semantics/issues/4"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:45f89bca-24a3-8689-c8b3-51eb2aa9ee9c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E066:3EA732:422C9:55AFF:69741941 |
| html-safe-nonce | 29dc9714fae98aa4fe014f7966333acb4f73d17954a8667b1b01a73019bd2b8e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMDY2OjNFQTczMjo0MjJDOTo1NUFGRjo2OTc0MTk0MSIsInZpc2l0b3JfaWQiOiI2MjA4MTEzMzc5OTA0MTI2MDkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 05ae978d807420ff48baeb7b2e3a3ffa406fe26392be9e179e0426c5247f0c59 |
| hovercard-subject-tag | issue:565835647 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/kframework/javascript-semantics/4/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f99c26eabc38337d38763bb972630b78ac31cb2cdf042ad0565a5d38b1bcf911/kframework/javascript-semantics/issues/4 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f99c26eabc38337d38763bb972630b78ac31cb2cdf042ad0565a5d38b1bcf911/kframework/javascript-semantics/issues/4 |
| og:image:alt | Hi all, Great stuff. I think there is a bug in Math.abs: javascript-semantics/stdlib/08.math.js Lines 5 to 11 in d5aca30 Math.abs = function (x) { x = @ToNumber(x); if (x < 0) return -x; else retur... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | deian |
| hostname | github.com |
| expected-hostname | github.com |
| None | 447dc9917c3d68d647a01abfdefe55ec7ee1785922136c1d8395dbb3ab6d57b9 |
| turbo-cache-control | no-preview |
| go-import | github.com/kframework/javascript-semantics git https://github.com/kframework/javascript-semantics.git |
| octolytics-dimension-user_id | 5104335 |
| octolytics-dimension-user_login | kframework |
| octolytics-dimension-repository_id | 11711462 |
| octolytics-dimension-repository_nwo | kframework/javascript-semantics |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 11711462 |
| octolytics-dimension-repository_network_root_nwo | kframework/javascript-semantics |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8dad7bdfecbe3eaa97ac4e632d6b47e2b23e81d9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width