{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaIO/Formatting.jl/issues/51","repository_url":"https://api.github.com/repos/JuliaIO/Formatting.jl","labels_url":"https://api.github.com/repos/JuliaIO/Formatting.jl/issues/51/labels{/name}","comments_url":"https://api.github.com/repos/JuliaIO/Formatting.jl/issues/51/comments","events_url":"https://api.github.com/repos/JuliaIO/Formatting.jl/issues/51/events","html_url":"https://github.com/JuliaIO/Formatting.jl/issues/51","id":306926963,"number":51,"title":"Width problem with some float numbers","user":{"login":"diegozea","id":2822757,"avatar_url":"https://avatars0.githubusercontent.com/u/2822757?v=4","gravatar_id":"","url":"https://api.github.com/users/diegozea","html_url":"https://github.com/diegozea","followers_url":"https://api.github.com/users/diegozea/followers","following_url":"https://api.github.com/users/diegozea/following{/other_user}","gists_url":"https://api.github.com/users/diegozea/gists{/gist_id}","starred_url":"https://api.github.com/users/diegozea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diegozea/subscriptions","organizations_url":"https://api.github.com/users/diegozea/orgs","repos_url":"https://api.github.com/users/diegozea/repos","events_url":"https://api.github.com/users/diegozea/events{/privacy}","received_events_url":"https://api.github.com/users/diegozea/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-03-20T15:53:12Z","updated_at":"2018-03-22T20:37:47Z","closed_at":"2018-03-22T20:17:59Z","author_association":"NONE","body":"There is a problem with the width of the printed string when the rounded number has one digit more than the input number. e.g.:\r\n\r\n```julia\r\njulia> using Formatting\r\n\r\njulia> function print_number(n)\r\n       s = IOBuffer()\r\n       printfmt(s, \"{1:6.2f}\", n)\r\n       S = String(s)\r\n       println(\"printed: \\\"\", S, \"\\\" number: \", n, \" printed length: \", length(S), \" expected: \", 6)\r\n       end\r\nprint_number (generic function with 1 method)\r\n\r\njulia> print_number(10.000)\r\nprinted: \" 10.00\" number: 10.0 printed length: 6 expected: 6\r\n\r\njulia> print_number( 9.999)\r\nprinted: \"  10.00\" number: 9.999 printed length: 7 expected: 6\r\n\r\njulia> print_number(100.000)\r\nprinted: \"100.00\" number: 100.0 printed length: 6 expected: 6\r\n\r\njulia> print_number(99.999)\r\nprinted: \" 100.00\" number: 99.999 printed length: 7 expected: 6\r\n\r\n```\r\n\r\nThis causes https://github.com/diegozea/MIToS.jl/issues/42"},"comment":{"url":"https://api.github.com/repos/JuliaIO/Formatting.jl/issues/comments/375449314","html_url":"https://github.com/JuliaIO/Formatting.jl/issues/51#issuecomment-375449314","issue_url":"https://api.github.com/repos/JuliaIO/Formatting.jl/issues/51","id":375449314,"user":{"login":"diegozea","id":2822757,"avatar_url":"https://avatars0.githubusercontent.com/u/2822757?v=4","gravatar_id":"","url":"https://api.github.com/users/diegozea","html_url":"https://github.com/diegozea","followers_url":"https://api.github.com/users/diegozea/followers","following_url":"https://api.github.com/users/diegozea/following{/other_user}","gists_url":"https://api.github.com/users/diegozea/gists{/gist_id}","starred_url":"https://api.github.com/users/diegozea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diegozea/subscriptions","organizations_url":"https://api.github.com/users/diegozea/orgs","repos_url":"https://api.github.com/users/diegozea/repos","events_url":"https://api.github.com/users/diegozea/events{/privacy}","received_events_url":"https://api.github.com/users/diegozea/received_events","type":"User","site_admin":false},"created_at":"2018-03-22T20:37:47Z","updated_at":"2018-03-22T20:37:47Z","author_association":"NONE","body":"Thanks @ararslan and @jmkuhn  :smiley: "}}
{"actor":{"display_login":"diegozea"}}