payload: {"action":"created","issue":{"url":"https://api.github.com/repos/openscad/list-comprehension-demos/issues/13","repository_url":"https://api.github.com/repos/openscad/list-comprehension-demos","labels_url":"https://api.github.com/repos/openscad/list-comprehension-demos/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/openscad/list-comprehension-demos/issues/13/comments","events_url":"https://api.github.com/repos/openscad/list-comprehension-demos/issues/13/events","html_url":"https://github.com/openscad/list-comprehension-demos/issues/13","id":474358934,"node_id":"MDU6SXNzdWU0NzQzNTg5MzQ=","number":13,"title":" [for (t=[0:step:1-step]) ...] yields one less than expected","user":{"login":"charlieb","id":37277,"node_id":"MDQ6VXNlcjM3Mjc3","avatar_url":"https://avatars3.githubusercontent.com/u/37277?v=4","gravatar_id":"","url":"https://api.github.com/users/charlieb","html_url":"https://github.com/charlieb","followers_url":"https://api.github.com/users/charlieb/followers","following_url":"https://api.github.com/users/charlieb/following{/other_user}","gists_url":"https://api.github.com/users/charlieb/gists{/gist_id}","starred_url":"https://api.github.com/users/charlieb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charlieb/subscriptions","organizations_url":"https://api.github.com/users/charlieb/orgs","repos_url":"https://api.github.com/users/charlieb/repos","events_url":"https://api.github.com/users/charlieb/events{/privacy}","received_events_url":"https://api.github.com/users/charlieb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2019-07-30T03:58:53Z","updated_at":"2019-07-30T05:19:44Z","closed_at":null,"author_association":"NONE","body":"I'm guessing here but it seems like the intent of the 1-step end condition in the following is that we exclude 1.0 from the array. Thus:\r\n```openscad\r\nstep = 0.01\r\necho([for (t=[0:step:1-step]) t])\r\n```\r\nwould print [0 ... 0.99] i.e. 100 values but it doesn't. It prints only 99 values: [0 ... 0.98].\r\nThis is a little confusing when trying to adapt the code because I end up with a bunch of -2s where I would expect to find only -1s.\r\nThis is not exactly a big deal but if someone would confirm the intent is as I expect I will create a pull request with the fixes."},"comment":{"url":"https://api.github.com/repos/openscad/list-comprehension-demos/issues/comments/516266172","html_url":"https://github.com/openscad/list-comprehension-demos/issues/13#issuecomment-516266172","issue_url":"https://api.github.com/repos/openscad/list-comprehension-demos/issues/13","id":516266172,"node_id":"MDEyOklzc3VlQ29tbWVudDUxNjI2NjE3Mg==","user":{"login":"MichaelAtOz","id":1972961,"node_id":"MDQ6VXNlcjE5NzI5NjE=","avatar_url":"https://avatars3.githubusercontent.com/u/1972961?v=4","gravatar_id":"","url":"https://api.github.com/users/MichaelAtOz","html_url":"https://github.com/MichaelAtOz","followers_url":"https://api.github.com/users/MichaelAtOz/followers","following_url":"https://api.github.com/users/MichaelAtOz/following{/other_user}","gists_url":"https://api.github.com/users/MichaelAtOz/gists{/gist_id}","starred_url":"https://api.github.com/users/MichaelAtOz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichaelAtOz/subscriptions","organizations_url":"https://api.github.com/users/MichaelAtOz/orgs","repos_url":"https://api.github.com/users/MichaelAtOz/repos","events_url":"https://api.github.com/users/MichaelAtOz/events{/privacy}","received_events_url":"https://api.github.com/users/MichaelAtOz/received_events","type":"User","site_admin":false},"created_at":"2019-07-30T05:19:44Z","updated_at":"2019-07-30T05:19:44Z","author_association":"MEMBER","body":"[This is a good primer](https://www.exploringbinary.com/why-0-point-1-does-not-exist-in-floating-point/) to this specific floating point problem. \r\n`0.01` as a double is `0.01000000000000000020816681711721685132943093776702880859375`"}}
other: {"actor":{"display_login":"MichaelAtOz"}}