{"action":"created","issue":{"url":"https://api.github.com/repos/ORelio/Minecraft-Console-Client/issues/200","repository_url":"https://api.github.com/repos/ORelio/Minecraft-Console-Client","labels_url":"https://api.github.com/repos/ORelio/Minecraft-Console-Client/issues/200/labels{/name}","comments_url":"https://api.github.com/repos/ORelio/Minecraft-Console-Client/issues/200/comments","events_url":"https://api.github.com/repos/ORelio/Minecraft-Console-Client/issues/200/events","html_url":"https://github.com/ORelio/Minecraft-Console-Client/issues/200","id":176254100,"number":200,"title":"Caculator Decimals","user":{"login":"ReOp14","id":21974453,"avatar_url":"https://avatars.githubusercontent.com/u/21974453?v=3","gravatar_id":"","url":"https://api.github.com/users/ReOp14","html_url":"https://github.com/ReOp14","followers_url":"https://api.github.com/users/ReOp14/followers","following_url":"https://api.github.com/users/ReOp14/following{/other_user}","gists_url":"https://api.github.com/users/ReOp14/gists{/gist_id}","starred_url":"https://api.github.com/users/ReOp14/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ReOp14/subscriptions","organizations_url":"https://api.github.com/users/ReOp14/orgs","repos_url":"https://api.github.com/users/ReOp14/repos","events_url":"https://api.github.com/users/ReOp14/events{/privacy}","received_events_url":"https://api.github.com/users/ReOp14/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-09-11T17:17:41Z","updated_at":"2016-09-11T18:26:07Z","closed_at":null,"body":"Ok, so I made this calculator and it works great and I love it. \r\nWith my matches file you can ask it \"Whats 1 + 2\" and it will say \"Solution: 1 + 2 = 3\".\r\n```\r\n//MCCScript 1.0\r\nint op = MCC.GetVarAsInt(\"op\");\r\nint cac = MCC.GetVarAsInt(\"cac\");\r\n\r\nfor (int i = 0; i < 1; i++)\r\n{\t\r\n\tif (cac > 0)\r\n\t{\r\n\t\tif (op == 1)\r\n\t\t{\r\n\t\tint math2 = MCC.GetVarAsInt(\"math2\");\r\n\t\tint math1 = MCC.GetVarAsInt(\"math1\") + math2;\r\n\t\tint math3 = MCC.GetVarAsInt(\"math3\") + math1 - math2;\r\n\t\tMCC.SendText(\"Solution: \" + math3 + \" + \" + math2 + \" = \" + math1);\r\n\t\t}\r\n\t\tif (op == 2)\r\n\t\t{\r\n\t\tint math2 = MCC.GetVarAsInt(\"math2\");\r\n\t\tint math1 = MCC.GetVarAsInt(\"math1\") - math2;\r\n\t\tint math3 = MCC.GetVarAsInt(\"math3\") + math1 + math2;\r\n\t\tMCC.SendText(\"Solution: \" + math3 + \" - \" + math2 + \" = \" + math1);\r\n\t\t}\r\n\t\tif (op == 3)\r\n\t\t{\r\n\t\tint math2 = MCC.GetVarAsInt(\"math2\");\r\n\t\tint math1 = MCC.GetVarAsInt(\"math1\") * math2;\r\n\t\tint math3 = MCC.GetVarAsInt(\"math3\") + math1 / math2;\r\n\t\tMCC.SendText(\"Solution: \" + math3 + \" * \" + math2 + \" = \" + math1);\r\n\t\t}\r\n\t\tif (op == 4)\r\n\t\t{\r\n\t\tint math2 = MCC.GetVarAsInt(\"math2\");\r\n\t\tint math1 = MCC.GetVarAsInt(\"math1\") / math2;\r\n\t\tint math3 = MCC.GetVarAsInt(\"math3\") + math1 * math2;\r\n\t\tMCC.SendText(\"Solution: \" + math3 + \" % \" + math2 + \" = \" + math1);\r\n\t\t}\r\n\t}\r\n\tif (cac < 1)\r\n\t{\r\n\t\tMCC.SendText(\"Caculator is currently toggled off.\");\r\n\t\treturn null;\r\n\t}\r\n}\r\nreturn null;\r\n````\r\n\r\nAlthough its good, it doesn't support **decimals**. Is it possible to add decimals to this calculator script I have here?\r\n"},"comment":{"url":"https://api.github.com/repos/ORelio/Minecraft-Console-Client/issues/comments/246195462","html_url":"https://github.com/ORelio/Minecraft-Console-Client/issues/200#issuecomment-246195462","issue_url":"https://api.github.com/repos/ORelio/Minecraft-Console-Client/issues/200","id":246195462,"user":{"login":"ORelio","id":1128206,"avatar_url":"https://avatars.githubusercontent.com/u/1128206?v=3","gravatar_id":"","url":"https://api.github.com/users/ORelio","html_url":"https://github.com/ORelio","followers_url":"https://api.github.com/users/ORelio/followers","following_url":"https://api.github.com/users/ORelio/following{/other_user}","gists_url":"https://api.github.com/users/ORelio/gists{/gist_id}","starred_url":"https://api.github.com/users/ORelio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ORelio/subscriptions","organizations_url":"https://api.github.com/users/ORelio/orgs","repos_url":"https://api.github.com/users/ORelio/repos","events_url":"https://api.github.com/users/ORelio/events{/privacy}","received_events_url":"https://api.github.com/users/ORelio/received_events","type":"User","site_admin":false},"created_at":"2016-09-11T18:26:07Z","updated_at":"2016-09-11T18:26:07Z","body":"Yes as it was just added.\r\nIf you do not wish to do that you may use GetVar() and convert it yourself to double."}}
{"actor":{"display_login":"ORelio"}}