{"action":"created","issue":{"url":"https://api.github.com/repos/UoAESRG/cs704-sw-public/issues/1","repository_url":"https://api.github.com/repos/UoAESRG/cs704-sw-public","labels_url":"https://api.github.com/repos/UoAESRG/cs704-sw-public/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/UoAESRG/cs704-sw-public/issues/1/comments","events_url":"https://api.github.com/repos/UoAESRG/cs704-sw-public/issues/1/events","html_url":"https://github.com/UoAESRG/cs704-sw-public/issues/1","id":181049669,"number":1,"title":"Fail printf float number","user":{"login":"wyu302","id":11398888,"avatar_url":"https://avatars.githubusercontent.com/u/11398888?v=3","gravatar_id":"","url":"https://api.github.com/users/wyu302","html_url":"https://github.com/wyu302","followers_url":"https://api.github.com/users/wyu302/followers","following_url":"https://api.github.com/users/wyu302/following{/other_user}","gists_url":"https://api.github.com/users/wyu302/gists{/gist_id}","starred_url":"https://api.github.com/users/wyu302/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wyu302/subscriptions","organizations_url":"https://api.github.com/users/wyu302/orgs","repos_url":"https://api.github.com/users/wyu302/repos","events_url":"https://api.github.com/users/wyu302/events{/privacy}","received_events_url":"https://api.github.com/users/wyu302/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-05T02:13:17Z","updated_at":"2016-10-05T02:26:10Z","closed_at":null,"body":"Hi,\r\nWe've been trying to print out a float number using printf(\"some-string: %f\",the-number) and the result appears to be \"some-string:  \". Strings came out but the float did not. Another group seems to be having the same problem. Any suggestions?\r\nWilliam"},"comment":{"url":"https://api.github.com/repos/UoAESRG/cs704-sw-public/issues/comments/251566262","html_url":"https://github.com/UoAESRG/cs704-sw-public/issues/1#issuecomment-251566262","issue_url":"https://api.github.com/repos/UoAESRG/cs704-sw-public/issues/1","id":251566262,"user":{"login":"AndrewChenUoA","id":4627037,"avatar_url":"https://avatars.githubusercontent.com/u/4627037?v=3","gravatar_id":"","url":"https://api.github.com/users/AndrewChenUoA","html_url":"https://github.com/AndrewChenUoA","followers_url":"https://api.github.com/users/AndrewChenUoA/followers","following_url":"https://api.github.com/users/AndrewChenUoA/following{/other_user}","gists_url":"https://api.github.com/users/AndrewChenUoA/gists{/gist_id}","starred_url":"https://api.github.com/users/AndrewChenUoA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndrewChenUoA/subscriptions","organizations_url":"https://api.github.com/users/AndrewChenUoA/orgs","repos_url":"https://api.github.com/users/AndrewChenUoA/repos","events_url":"https://api.github.com/users/AndrewChenUoA/events{/privacy}","received_events_url":"https://api.github.com/users/AndrewChenUoA/received_events","type":"User","site_admin":false},"created_at":"2016-10-05T02:26:09Z","updated_at":"2016-10-05T02:26:09Z","body":"I just happened to be in the labs so talked it through with the students. printf is not a typesafe function so with weird things happening with memory it just doesn't know how to pull the variables and represent them correctly. So easy workaround is to just scale the floats (i.e. multiply by 10000000), cast into int, and then print them int, especially since this is just being done for debugging purposes."}}
{"actor":{"display_login":"AndrewChenUoA"}}