{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/51520","repository_url":"https://api.github.com/repos/rust-lang/rust","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/51520/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/51520/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/51520/events","html_url":"https://github.com/rust-lang/rust/issues/51520","id":331591268,"node_id":"MDU6SXNzdWUzMzE1OTEyNjg=","number":51520,"title":"Unexpected result converting an i64 to an f64","user":{"login":"ruifonseca","id":804752,"node_id":"MDQ6VXNlcjgwNDc1Mg==","avatar_url":"https://avatars0.githubusercontent.com/u/804752?v=4","gravatar_id":"","url":"https://api.github.com/users/ruifonseca","html_url":"https://github.com/ruifonseca","followers_url":"https://api.github.com/users/ruifonseca/followers","following_url":"https://api.github.com/users/ruifonseca/following{/other_user}","gists_url":"https://api.github.com/users/ruifonseca/gists{/gist_id}","starred_url":"https://api.github.com/users/ruifonseca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruifonseca/subscriptions","organizations_url":"https://api.github.com/users/ruifonseca/orgs","repos_url":"https://api.github.com/users/ruifonseca/repos","events_url":"https://api.github.com/users/ruifonseca/events{/privacy}","received_events_url":"https://api.github.com/users/ruifonseca/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-06-12T13:37:19Z","updated_at":"2018-06-12T17:21:59Z","closed_at":"2018-06-12T17:21:59Z","author_association":"NONE","body":"Hi,\r\n\r\nThe following program prints:\r\n> f64 = 2.2\r\n> i64 as f64 = 2\r\n> 2.2 - 2 = 0.20000000000000018\r\n\r\n```rust\r\nfn main() {\r\n    let flo: f64 = 2.2;\r\n    let int: i64 = 2;\r\n    println!(\"f64 = {}\", flo);\r\n    println!(\"i64 as f64 = {}\", int as f64);\r\n    println!(\"{} - {} = {}\", flo, int, flo - (int as f64));\r\n}\r\n```\r\nVerified on:\r\n> stable-x86_64-unknown-linux-gnu unchanged - rustc 1.26.2 (594fb253c 2018-06-01)\r\n\r\nRegards,\r\nRui"},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/396668363","html_url":"https://github.com/rust-lang/rust/issues/51520#issuecomment-396668363","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/51520","id":396668363,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NjY2ODM2Mw==","user":{"login":"ruifonseca","id":804752,"node_id":"MDQ6VXNlcjgwNDc1Mg==","avatar_url":"https://avatars0.githubusercontent.com/u/804752?v=4","gravatar_id":"","url":"https://api.github.com/users/ruifonseca","html_url":"https://github.com/ruifonseca","followers_url":"https://api.github.com/users/ruifonseca/followers","following_url":"https://api.github.com/users/ruifonseca/following{/other_user}","gists_url":"https://api.github.com/users/ruifonseca/gists{/gist_id}","starred_url":"https://api.github.com/users/ruifonseca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruifonseca/subscriptions","organizations_url":"https://api.github.com/users/ruifonseca/orgs","repos_url":"https://api.github.com/users/ruifonseca/repos","events_url":"https://api.github.com/users/ruifonseca/events{/privacy}","received_events_url":"https://api.github.com/users/ruifonseca/received_events","type":"User","site_admin":false},"created_at":"2018-06-12T17:21:59Z","updated_at":"2018-06-12T17:21:59Z","author_association":"NONE","body":"@jonas-schievink, @rkruppe, thank you for your clarifications.\r\nClosing the issue ;)"}}
{"actor":{"display_login":"ruifonseca"}}