{"action":"created","issue":{"url":"https://api.github.com/repos/0opslab/opslabJutil/issues/14","repository_url":"https://api.github.com/repos/0opslab/opslabJutil","labels_url":"https://api.github.com/repos/0opslab/opslabJutil/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/0opslab/opslabJutil/issues/14/comments","events_url":"https://api.github.com/repos/0opslab/opslabJutil/issues/14/events","html_url":"https://github.com/0opslab/opslabJutil/issues/14","id":422572983,"node_id":"MDU6SXNzdWU0MjI1NzI5ODM=","number":14,"title":"ArrayUtil doueleBitCount","user":{"login":"kimmil","id":29563690,"node_id":"MDQ6VXNlcjI5NTYzNjkw","avatar_url":"https://avatars1.githubusercontent.com/u/29563690?v=4","gravatar_id":"","url":"https://api.github.com/users/kimmil","html_url":"https://github.com/kimmil","followers_url":"https://api.github.com/users/kimmil/followers","following_url":"https://api.github.com/users/kimmil/following{/other_user}","gists_url":"https://api.github.com/users/kimmil/gists{/gist_id}","starred_url":"https://api.github.com/users/kimmil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kimmil/subscriptions","organizations_url":"https://api.github.com/users/kimmil/orgs","repos_url":"https://api.github.com/users/kimmil/repos","events_url":"https://api.github.com/users/kimmil/events{/privacy}","received_events_url":"https://api.github.com/users/kimmil/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2019-03-19T07:01:03Z","updated_at":"2019-03-19T07:08:19Z","closed_at":null,"author_association":"NONE","body":"该方法没有考虑科学计数法的问题\r\n\r\n public static int doueleBitCount(double dd)\r\n    {\r\n        String temp = String.valueOf(dd);\r\n        int i = temp.indexOf(\".\");\r\n        if (i > -1)\r\n        {\r\n            return temp.length() - i - 1;\r\n        }\r\n        return 0;\r\n        \r\n    }\r\n    \r\n    public static void main(String[] args)\r\n    {\r\n        Double a = 3.4E10;\r\n        System.out.println(a);\r\n        System.out.println(doueleBitCount(a));\r\n    }"},"comment":{"url":"https://api.github.com/repos/0opslab/opslabJutil/issues/comments/474223311","html_url":"https://github.com/0opslab/opslabJutil/issues/14#issuecomment-474223311","issue_url":"https://api.github.com/repos/0opslab/opslabJutil/issues/14","id":474223311,"node_id":"MDEyOklzc3VlQ29tbWVudDQ3NDIyMzMxMQ==","user":{"login":"kimmil","id":29563690,"node_id":"MDQ6VXNlcjI5NTYzNjkw","avatar_url":"https://avatars1.githubusercontent.com/u/29563690?v=4","gravatar_id":"","url":"https://api.github.com/users/kimmil","html_url":"https://github.com/kimmil","followers_url":"https://api.github.com/users/kimmil/followers","following_url":"https://api.github.com/users/kimmil/following{/other_user}","gists_url":"https://api.github.com/users/kimmil/gists{/gist_id}","starred_url":"https://api.github.com/users/kimmil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kimmil/subscriptions","organizations_url":"https://api.github.com/users/kimmil/orgs","repos_url":"https://api.github.com/users/kimmil/repos","events_url":"https://api.github.com/users/kimmil/events{/privacy}","received_events_url":"https://api.github.com/users/kimmil/received_events","type":"User","site_admin":false},"created_at":"2019-03-19T07:08:19Z","updated_at":"2019-03-19T07:08:19Z","author_association":"NONE","body":"这样就可以了\r\npublic static int doueleBitCount(double dd)\r\n    {\r\n        String temp = String.valueOf(dd);\r\n        BigDecimal bd = new BigDecimal(temp);\r\n        String str = bd.toPlainString();\r\n        System.out.println(str);\r\n        int i = str.indexOf(\".\");\r\n        if (i > -1)\r\n        {\r\n            return str.length() - i - 1;\r\n        }\r\n        return 0;\r\n        \r\n    }\r\n    \r\n    public static void main(String[] args)\r\n    {\r\n        Double a = 3.0123456789E9;\r\n        System.out.println(a);\r\n        System.out.println(doueleBitCount(a));\r\n    }"}}
{"actor":{"display_login":"kimmil"}}