{"action":"created","issue":{"url":"https://api.github.com/repos/scala-js/scala-js/issues/2327","repository_url":"https://api.github.com/repos/scala-js/scala-js","labels_url":"https://api.github.com/repos/scala-js/scala-js/issues/2327/labels{/name}","comments_url":"https://api.github.com/repos/scala-js/scala-js/issues/2327/comments","events_url":"https://api.github.com/repos/scala-js/scala-js/issues/2327/events","html_url":"https://github.com/scala-js/scala-js/issues/2327","id":147639949,"number":2327,"title":"Implement Double and Float conversion methods to long and int. ","user":{"login":"thesamet","id":307373,"avatar_url":"https://avatars.githubusercontent.com/u/307373?v=3","gravatar_id":"","url":"https://api.github.com/users/thesamet","html_url":"https://github.com/thesamet","followers_url":"https://api.github.com/users/thesamet/followers","following_url":"https://api.github.com/users/thesamet/following{/other_user}","gists_url":"https://api.github.com/users/thesamet/gists{/gist_id}","starred_url":"https://api.github.com/users/thesamet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thesamet/subscriptions","organizations_url":"https://api.github.com/users/thesamet/orgs","repos_url":"https://api.github.com/users/thesamet/repos","events_url":"https://api.github.com/users/thesamet/events{/privacy}","received_events_url":"https://api.github.com/users/thesamet/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-12T05:50:52Z","updated_at":"2016-04-12T06:18:21Z","closed_at":null,"body":"ScalaJS is currently missing the following methods:\r\n\r\n```\r\nDouble.doubleToRawLongBits\r\nDouble.longBitsToDouble\r\nFloat.floatToRawIntBits\r\nFloat.intBitsToFloat\r\n```\r\n\r\nContext: TrueAccord/ScalaPB#99"},"comment":{"url":"https://api.github.com/repos/scala-js/scala-js/issues/comments/208725975","html_url":"https://github.com/scala-js/scala-js/issues/2327#issuecomment-208725975","issue_url":"https://api.github.com/repos/scala-js/scala-js/issues/2327","id":208725975,"user":{"login":"sjrd","id":535934,"avatar_url":"https://avatars.githubusercontent.com/u/535934?v=3","gravatar_id":"","url":"https://api.github.com/users/sjrd","html_url":"https://github.com/sjrd","followers_url":"https://api.github.com/users/sjrd/followers","following_url":"https://api.github.com/users/sjrd/following{/other_user}","gists_url":"https://api.github.com/users/sjrd/gists{/gist_id}","starred_url":"https://api.github.com/users/sjrd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjrd/subscriptions","organizations_url":"https://api.github.com/users/sjrd/orgs","repos_url":"https://api.github.com/users/sjrd/repos","events_url":"https://api.github.com/users/sjrd/events{/privacy}","received_events_url":"https://api.github.com/users/sjrd/received_events","type":"User","site_admin":false},"created_at":"2016-04-12T06:18:21Z","updated_at":"2016-04-12T06:18:21Z","body":"We already have `Double.doubleToLongBits`, `Double.longBitsToDouble`, `Float.floatToIntBits` and `Float.intBitsToFloat`.\r\n\r\nAnd the raw versions *cannot* be implemented, because JavaScript only has one canonical `NaN`.\r\n\r\nYou should evaluate whether the non raw versions are OK for your use case, and use those of possible. If not, you're or of luck."}}