{"action":"created","issue":{"url":"https://api.github.com/repos/nom-tam-fits/nom-tam-fits/issues/88","repository_url":"https://api.github.com/repos/nom-tam-fits/nom-tam-fits","labels_url":"https://api.github.com/repos/nom-tam-fits/nom-tam-fits/issues/88/labels{/name}","comments_url":"https://api.github.com/repos/nom-tam-fits/nom-tam-fits/issues/88/comments","events_url":"https://api.github.com/repos/nom-tam-fits/nom-tam-fits/issues/88/events","html_url":"https://github.com/nom-tam-fits/nom-tam-fits/issues/88","id":141783686,"number":88,"title":"concentrate double parsing / formatting","user":{"login":"ritchieGitHub","id":9456779,"avatar_url":"https://avatars.githubusercontent.com/u/9456779?v=3","gravatar_id":"","url":"https://api.github.com/users/ritchieGitHub","html_url":"https://github.com/ritchieGitHub","followers_url":"https://api.github.com/users/ritchieGitHub/followers","following_url":"https://api.github.com/users/ritchieGitHub/following{/other_user}","gists_url":"https://api.github.com/users/ritchieGitHub/gists{/gist_id}","starred_url":"https://api.github.com/users/ritchieGitHub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ritchieGitHub/subscriptions","organizations_url":"https://api.github.com/users/ritchieGitHub/orgs","repos_url":"https://api.github.com/users/ritchieGitHub/repos","events_url":"https://api.github.com/users/ritchieGitHub/events{/privacy}","received_events_url":"https://api.github.com/users/ritchieGitHub/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nom-tam-fits/nom-tam-fits/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/nom-tam-fits/nom-tam-fits/milestones/2","html_url":"https://github.com/nom-tam-fits/nom-tam-fits/milestones/2.0.0","labels_url":"https://api.github.com/repos/nom-tam-fits/nom-tam-fits/milestones/2/labels","id":979266,"number":2,"title":"2.0.0","description":"new major version because of api changes needed for using nio buffers and memory mapped files. This will enable un-limmited file sizes.","creator":{"login":"ritchieGitHub","id":9456779,"avatar_url":"https://avatars.githubusercontent.com/u/9456779?v=3","gravatar_id":"","url":"https://api.github.com/users/ritchieGitHub","html_url":"https://github.com/ritchieGitHub","followers_url":"https://api.github.com/users/ritchieGitHub/followers","following_url":"https://api.github.com/users/ritchieGitHub/following{/other_user}","gists_url":"https://api.github.com/users/ritchieGitHub/gists{/gist_id}","starred_url":"https://api.github.com/users/ritchieGitHub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ritchieGitHub/subscriptions","organizations_url":"https://api.github.com/users/ritchieGitHub/orgs","repos_url":"https://api.github.com/users/ritchieGitHub/repos","events_url":"https://api.github.com/users/ritchieGitHub/events{/privacy}","received_events_url":"https://api.github.com/users/ritchieGitHub/received_events","type":"User","site_admin":false},"open_issues":13,"closed_issues":0,"state":"open","created_at":"2015-02-14T05:39:04Z","updated_at":"2016-03-18T06:05:43Z","due_on":"2016-10-30T23:00:00Z","closed_at":null},"comments":3,"created_at":"2016-03-18T06:05:43Z","updated_at":"2016-03-19T15:08:28Z","closed_at":null,"body":"For ASCII tables there are some extremely fast double/float print to/parse from string methods:\r\n```\r\nnom.tam.util.ByteParser.getDouble(int)\r\nnom.tam.util.ByteFormatter.format(double, byte[], int, int)\r\nnom.tam.util.ByteFormatter.format(float, byte[], int, int)\r\n```\r\nthese should be harmonized with the header card double printing"},"comment":{"url":"https://api.github.com/repos/nom-tam-fits/nom-tam-fits/issues/comments/198719137","html_url":"https://github.com/nom-tam-fits/nom-tam-fits/issues/88#issuecomment-198719137","issue_url":"https://api.github.com/repos/nom-tam-fits/nom-tam-fits/issues/88","id":198719137,"user":{"login":"wcleveland","id":3858087,"avatar_url":"https://avatars.githubusercontent.com/u/3858087?v=3","gravatar_id":"","url":"https://api.github.com/users/wcleveland","html_url":"https://github.com/wcleveland","followers_url":"https://api.github.com/users/wcleveland/followers","following_url":"https://api.github.com/users/wcleveland/following{/other_user}","gists_url":"https://api.github.com/users/wcleveland/gists{/gist_id}","starred_url":"https://api.github.com/users/wcleveland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wcleveland/subscriptions","organizations_url":"https://api.github.com/users/wcleveland/orgs","repos_url":"https://api.github.com/users/wcleveland/repos","events_url":"https://api.github.com/users/wcleveland/events{/privacy}","received_events_url":"https://api.github.com/users/wcleveland/received_events","type":"User","site_admin":false},"created_at":"2016-03-19T15:08:28Z","updated_at":"2016-03-19T15:08:28Z","body":"Converting from a float to a double does not lose precision. The value stays exactly the same. \r\n0.055 can not be exactly represented in binary. \r\nThe toString(float) function expects less precision than toString(double) and rounds the result at a lower precision than the double version.\r\n\r\nI wouldn't make changes to the code. I'm still not convinced that floats or doubles should be converted to BigDecimals."}}