{"action":"created","issue":{"url":"https://api.github.com/repos/arduino/Arduino/issues/5203","repository_url":"https://api.github.com/repos/arduino/Arduino","labels_url":"https://api.github.com/repos/arduino/Arduino/issues/5203/labels{/name}","comments_url":"https://api.github.com/repos/arduino/Arduino/issues/5203/comments","events_url":"https://api.github.com/repos/arduino/Arduino/issues/5203/events","html_url":"https://github.com/arduino/Arduino/issues/5203","id":169251565,"number":5203,"title":"Multiplication Error","user":{"login":"birotx","id":16003131,"avatar_url":"https://avatars.githubusercontent.com/u/16003131?v=3","gravatar_id":"","url":"https://api.github.com/users/birotx","html_url":"https://github.com/birotx","followers_url":"https://api.github.com/users/birotx/followers","following_url":"https://api.github.com/users/birotx/following{/other_user}","gists_url":"https://api.github.com/users/birotx/gists{/gist_id}","starred_url":"https://api.github.com/users/birotx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/birotx/subscriptions","organizations_url":"https://api.github.com/users/birotx/orgs","repos_url":"https://api.github.com/users/birotx/repos","events_url":"https://api.github.com/users/birotx/events{/privacy}","received_events_url":"https://api.github.com/users/birotx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-03T22:41:33Z","updated_at":"2016-08-03T23:35:23Z","closed_at":null,"body":"We have the following piece of code:\r\n\r\n    byte msb = data[1];\r\n    byte lsb = data[0];\r\n    int result = (msb << 8) | lsb;\r\n    long RT = result*100;\r\n    RT=RT;\r\n    Serial.print(result);\r\n    Serial.print(\" \");\r\n    Serial.print(RT);\r\n    Serial.println(\" \");\r\n\r\nand this is a line of the serial: \r\n`404 -25136`\r\n\r\nSo 404*100 is  -25136\r\n\r\nThen we just move -*100 from the declaration of RT variable to the next line like following:\r\n\r\n  \r\n ```\r\n    byte msb = data[1];\r\n    byte lsb = data[0];\r\n    int result = (msb << 8) | lsb;\r\n    long RT = result;\r\n    RT=RT*100;\r\n    Serial.print(result);\r\n    Serial.print(\" \");\r\n    Serial.print(RT);\r\n    Serial.println(\" \");\r\n```\r\n\r\n\r\nand a line from serial:\r\n\r\n`404 40400 `\r\n\r\nEverything works like a charm! I spent hours to figure what was wrong....\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/arduino/Arduino/issues/comments/237407786","html_url":"https://github.com/arduino/Arduino/issues/5203#issuecomment-237407786","issue_url":"https://api.github.com/repos/arduino/Arduino/issues/5203","id":237407786,"user":{"login":"per1234","id":8572152,"avatar_url":"https://avatars.githubusercontent.com/u/8572152?v=3","gravatar_id":"","url":"https://api.github.com/users/per1234","html_url":"https://github.com/per1234","followers_url":"https://api.github.com/users/per1234/followers","following_url":"https://api.github.com/users/per1234/following{/other_user}","gists_url":"https://api.github.com/users/per1234/gists{/gist_id}","starred_url":"https://api.github.com/users/per1234/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/per1234/subscriptions","organizations_url":"https://api.github.com/users/per1234/orgs","repos_url":"https://api.github.com/users/per1234/repos","events_url":"https://api.github.com/users/per1234/events{/privacy}","received_events_url":"https://api.github.com/users/per1234/received_events","type":"User","site_admin":false},"created_at":"2016-08-03T23:35:23Z","updated_at":"2016-08-03T23:35:23Z","body":"Since your issue is resolved please close it."}}
{"actor":{"display_login":"per1234"}}