{"action":"created","issue":{"url":"https://api.github.com/repos/grommet/grommet/issues/1748","repository_url":"https://api.github.com/repos/grommet/grommet","labels_url":"https://api.github.com/repos/grommet/grommet/issues/1748/labels{/name}","comments_url":"https://api.github.com/repos/grommet/grommet/issues/1748/comments","events_url":"https://api.github.com/repos/grommet/grommet/issues/1748/events","html_url":"https://github.com/grommet/grommet/issues/1748","id":275919803,"number":1748,"title":"Display issue with floating number and graphics value","user":{"login":"msuiche","id":1621145,"avatar_url":"https://avatars2.githubusercontent.com/u/1621145?v=4","gravatar_id":"","url":"https://api.github.com/users/msuiche","html_url":"https://github.com/msuiche","followers_url":"https://api.github.com/users/msuiche/followers","following_url":"https://api.github.com/users/msuiche/following{/other_user}","gists_url":"https://api.github.com/users/msuiche/gists{/gist_id}","starred_url":"https://api.github.com/users/msuiche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msuiche/subscriptions","organizations_url":"https://api.github.com/users/msuiche/orgs","repos_url":"https://api.github.com/users/msuiche/repos","events_url":"https://api.github.com/users/msuiche/events{/privacy}","received_events_url":"https://api.github.com/users/msuiche/received_events","type":"User","site_admin":false},"labels":[{"id":482926645,"url":"https://api.github.com/repos/grommet/grommet/labels/this%20sprint","name":"this sprint","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-11-22T01:57:38Z","updated_at":"2017-11-22T04:05:33Z","closed_at":null,"author_association":"NONE","body":"A random JavaScript arithmetic issue prevents additional two floating numbers without the user truncating it after:\r\n\r\nThis means that the [rendered value](https://github.com/grommet/grommet/blob/5af0ad403e73aaa96625f6304d1c82617e4ad076/src/js/components/Value.js#L61) from graphics needs to be parsed just like in [Legend.js! _seriesTotal()](https://github.com/grommet/grommet/blob/dbdbaed72e3e9e32e1d28f4c8465c264efb8f87f/src/js/components/Legend.js#L127) :\r\n\r\n```\r\n    const maxDecimalDigits = getMaxDecimalDigits(series);\r\n    (...)\r\n    return parseFloat(total.toFixed(maxDecimalDigits));\r\n```\r\n### Actual Behavior\r\n```\r\n> 1.25+0.68\r\n1.9300000000000002\r\n> 1.25+0.93\r\n2.18\r\n```\r\n\r\n### Expected Behavior\r\n```\r\n> 1.25+0.68\r\n1.93\r\n> 1.25+0.93\r\n2.18\r\n```\r\n\r\n### URL, screen shot, or Codepen exhibiting the issue\r\n![image](https://user-images.githubusercontent.com/1621145/33105884-ea7f5e7c-cf48-11e7-85a2-07d4939ec85f.png)\r\n\r\n### Your Environment\r\n<!--- Include as many relevant details about the environment you experienced the bug in -->\r\n* Grommet version:\r\n```\r\n    \"grommet\": \"^1.5.0\",\r\n    \"grommet-addons\": \"^0.4\",\r\n```\r\n* Browser Name and version:\r\n```\r\nGoogle Chrome\r\nVersion 62.0.3202.94 (Official Build) (64-bit)\r\n```\r\n* Operating System and version (desktop or mobile):\r\n```\r\n$ uname -a\r\nDarwin socotra 16.7.0 Darwin Kernel Version 16.7.0: Wed Oct  4 00:17:00 PDT 2017; root:xnu-3789.71.6~1/RELEASE_X86_64 x86_64\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/grommet/grommet/issues/comments/346237429","html_url":"https://github.com/grommet/grommet/issues/1748#issuecomment-346237429","issue_url":"https://api.github.com/repos/grommet/grommet/issues/1748","id":346237429,"user":{"login":"msuiche","id":1621145,"avatar_url":"https://avatars2.githubusercontent.com/u/1621145?v=4","gravatar_id":"","url":"https://api.github.com/users/msuiche","html_url":"https://github.com/msuiche","followers_url":"https://api.github.com/users/msuiche/followers","following_url":"https://api.github.com/users/msuiche/following{/other_user}","gists_url":"https://api.github.com/users/msuiche/gists{/gist_id}","starred_url":"https://api.github.com/users/msuiche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msuiche/subscriptions","organizations_url":"https://api.github.com/users/msuiche/orgs","repos_url":"https://api.github.com/users/msuiche/repos","events_url":"https://api.github.com/users/msuiche/events{/privacy}","received_events_url":"https://api.github.com/users/msuiche/received_events","type":"User","site_admin":false},"created_at":"2017-11-22T04:05:33Z","updated_at":"2017-11-22T04:05:33Z","author_association":"NONE","body":"Just sent this pull request: https://github.com/grommet/grommet/pull/1749/files"}}
{"actor":{"display_login":"msuiche"}}