Title: Weird behaviour of DataSeries>>#closeTo: · Issue #208 · PolyMathOrg/DataFrame · GitHub
Open Graph Title: Weird behaviour of DataSeries>>#closeTo: · Issue #208 · PolyMathOrg/DataFrame
X Title: Weird behaviour of DataSeries>>#closeTo: · Issue #208 · PolyMathOrg/DataFrame
Description: ds:= DataSeries withKeys: #(1 2 3 4) values:#(1 10 2 3) name:2 . ds1:= DataSeries withKeys: #(1 2 3 4) values:#(1.0001 10 2 3) name:2 . ds closeTo: ds1. Returns true ds:= DataSeries withKeys: #(1 2 3 4) values:#(5 10 2 3) name:2 . ds1:= ...
Open Graph Description: ds:= DataSeries withKeys: #(1 2 3 4) values:#(1 10 2 3) name:2 . ds1:= DataSeries withKeys: #(1 2 3 4) values:#(1.0001 10 2 3) name:2 . ds closeTo: ds1. Returns true ds:= DataSeries withKeys: #(1 2...
X Description: ds:= DataSeries withKeys: #(1 2 3 4) values:#(1 10 2 3) name:2 . ds1:= DataSeries withKeys: #(1 2 3 4) values:#(1.0001 10 2 3) name:2 . ds closeTo: ds1. Returns true ds:= DataSeries withKeys: #(1 2...
Opengraph URL: https://github.com/PolyMathOrg/DataFrame/issues/208
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Weird behaviour of DataSeries\u003e\u003e#closeTo:","articleBody":"```\r\nds:= DataSeries withKeys: #(1 2 3 4) values:#(1 10 2 3) name:2 .\r\nds1:= DataSeries withKeys: #(1 2 3 4) values:#(1.0001 10 2 3) name:2 .\r\nds closeTo: ds1.\r\n```\r\nReturns true\r\n\r\n```\r\nds:= DataSeries withKeys: #(1 2 3 4) values:#(5 10 2 3) name:2 .\r\nds1:= DataSeries withKeys: #(1 2 3 4) values:#(5.0001 10 2 3) name:2 .\r\nds closeTo: ds1.\r\n```\r\nAlso returns true.\r\nHowever,\r\n```\r\nds:= DataSeries withKeys: #(1 2 3 4) values:#(2 10 2 3) name:2 .\r\nds1:= DataSeries withKeys: #(1 2 3 4) values:#(2.0001 10 2 3) name:2 .\r\nds closeTo: ds1.\r\n```\r\nReturns false.\r\n\r\n\r\nWith certain numbers, it allows the default precision of 0.0001 ( 1, 4.....31, 256.......2047, 8192.....16383 )\r\nAnd with the other numbers, it returns false. \r\n\r\nThis code can be used to see at which numbers it returns true ( set the range accordingly, the current range is 1 to 100):\r\n\r\n```\r\nds:= DataSeries withKeys: #(1 2 3 4) values:#(1 10 2 3) name:2 .\r\nds1:= DataSeries withKeys: #(1 2 3 4) values:#(1 10 2 3) name:2 .\r\n1 to: 100 do: [ :x |\r\n\tds at: 1 put: x.\r\n\tds1 at: 1 put: x + 0.0001.\r\n\t(ds closeTo: ds1) = true ifTrue: [ Transcript crShow: x ] ].\r\n```","author":{"url":"https://github.com/Joshua-Dias-Barreto","@type":"Person","name":"Joshua-Dias-Barreto"},"datePublished":"2023-03-30T15:24:19.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/208/DataFrame/issues/208"}
| 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:1b6b964d-5c31-3d94-305d-bd4ef0e52be9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B860:3FDB33:1A793B0:224829F:697FB663 |
| html-safe-nonce | 47b799be6c9796a1b3c8fa22ba89f1f1cdb506812d106927cdd41b80eca13a29 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCODYwOjNGREIzMzoxQTc5M0IwOjIyNDgyOUY6Njk3RkI2NjMiLCJ2aXNpdG9yX2lkIjoiMzI4ODAzMDIyNDAyMDY0OTU3MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 2e6661d7368756f7ec32f31f233949dbbb481394191911aaa8bc1db2d244b2c7 |
| hovercard-subject-tag | issue:1647846878 |
| 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/PolyMathOrg/DataFrame/208/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c8c958bc2f6739e03b8b342b121c057f8af10acbecb6099d3fd3108ec8b0f0a2/PolyMathOrg/DataFrame/issues/208 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c8c958bc2f6739e03b8b342b121c057f8af10acbecb6099d3fd3108ec8b0f0a2/PolyMathOrg/DataFrame/issues/208 |
| og:image:alt | ds:= DataSeries withKeys: #(1 2 3 4) values:#(1 10 2 3) name:2 . ds1:= DataSeries withKeys: #(1 2 3 4) values:#(1.0001 10 2 3) name:2 . ds closeTo: ds1. Returns true ds:= DataSeries withKeys: #(1 2... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Joshua-Dias-Barreto |
| hostname | github.com |
| expected-hostname | github.com |
| None | 60279d4097367e16897439d16d6bbe4180663db828c666eeed2656988ffe59f6 |
| turbo-cache-control | no-preview |
| go-import | github.com/PolyMathOrg/DataFrame git https://github.com/PolyMathOrg/DataFrame.git |
| octolytics-dimension-user_id | 17797985 |
| octolytics-dimension-user_login | PolyMathOrg |
| octolytics-dimension-repository_id | 90879489 |
| octolytics-dimension-repository_nwo | PolyMathOrg/DataFrame |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 90879489 |
| octolytics-dimension-repository_network_root_nwo | PolyMathOrg/DataFrame |
| 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 | 7c85641c598ad130c74f7bcc27f58575cac69551 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width