{"action":"closed","issue":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/19525","repository_url":"https://api.github.com/repos/JuliaLang/julia","labels_url":"https://api.github.com/repos/JuliaLang/julia/issues/19525/labels{/name}","comments_url":"https://api.github.com/repos/JuliaLang/julia/issues/19525/comments","events_url":"https://api.github.com/repos/JuliaLang/julia/issues/19525/events","html_url":"https://github.com/JuliaLang/julia/issues/19525","id":194141243,"number":19525,"title":"\"divmod\" version for floats [Feature request]","user":{"login":"AlexanderKoshkarov","id":12105610,"avatar_url":"https://avatars.githubusercontent.com/u/12105610?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexanderKoshkarov","html_url":"https://github.com/AlexanderKoshkarov","followers_url":"https://api.github.com/users/AlexanderKoshkarov/followers","following_url":"https://api.github.com/users/AlexanderKoshkarov/following{/other_user}","gists_url":"https://api.github.com/users/AlexanderKoshkarov/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexanderKoshkarov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexanderKoshkarov/subscriptions","organizations_url":"https://api.github.com/users/AlexanderKoshkarov/orgs","repos_url":"https://api.github.com/users/AlexanderKoshkarov/repos","events_url":"https://api.github.com/users/AlexanderKoshkarov/events{/privacy}","received_events_url":"https://api.github.com/users/AlexanderKoshkarov/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-07T19:15:59Z","updated_at":"2016-12-07T20:54:38Z","closed_at":"2016-12-07T20:54:38Z","body":"it would be nice to have a build in function like this:\r\n```\r\nfunction fun(x)\r\n    i = floor(Int,x)\r\n    di = x - i\r\n    return (i,di)\r\nend\r\nx = 1.5\r\n(i,di) = fun(x)\r\n#  \"i\"  is 1\r\n# \"di\" is 0.5\r\n```\r\nAs far as I know, there is no such function. There should be a way to efficiently implement it."}}
{"actor":{"display_login":"stevengj"}}