{"id":17707593,"url":"https://github.com/h4wk507/qtcalculator","last_synced_at":"2026-05-01T15:32:21.065Z","repository":{"id":44353659,"uuid":"479486343","full_name":"H4wk507/QtCalculator","owner":"H4wk507","description":"Arithmetic expression parser built using C++ and Qt for GUI.","archived":false,"fork":false,"pushed_at":"2023-01-18T13:42:10.000Z","size":168,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-31T06:28:34.777Z","etag":null,"topics":["calculator","cpp","gui","qt","qt-calculator","qt5","qtcreator"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/H4wk507.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-04-08T17:45:50.000Z","updated_at":"2023-06-28T20:04:09.000Z","dependencies_parsed_at":"2023-01-18T16:01:44.420Z","dependency_job_id":null,"html_url":"https://github.com/H4wk507/QtCalculator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/H4wk507/QtCalculator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/H4wk507%2FQtCalculator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/H4wk507%2FQtCalculator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/H4wk507%2FQtCalculator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/H4wk507%2FQtCalculator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/H4wk507","download_url":"https://codeload.github.com/H4wk507/QtCalculator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/H4wk507%2FQtCalculator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32503071,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["calculator","cpp","gui","qt","qt-calculator","qt5","qtcreator"],"created_at":"2024-10-25T01:05:41.856Z","updated_at":"2026-05-01T15:32:21.041Z","avatar_url":"https://github.com/H4wk507.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# QtCalculator\n\nA simple GUI calculator built using Qt and C++\n\n![GUI](./screenshots/gui.png)\n\n## Intro\n\nThis program can calculate most of basic mathematical expressions\nby evaluating them accordingly to the [Order of operations](https://en.wikipedia.org/wiki/Order_of_operations).\nIt supports:\n\n- All arithmetic operations (including '=' sign for variable assignment)\n- All bitwise operations (~, \u0026, ∨, ^, \u003c\u003c, \u003e\u003e)\n- Other helpful operations such as: modulus division, exponentiation,\n  absolute value and scientific notation (2E5 = 2 × 10\u003csup\u003e5\u003c/sup\u003e)\n- Multiple number bases (binary, octal, decimal and hexadecimal)\n- Basic functions such as: sine, cosine, lcm and gcd\n- Scrolling through result history by using arrow up and arrow down keys\n\n## Examples\n\nExamples of expressions that this program can calculate:\n\n```\n2 + 2 = 4\n(0 + 913972 - 1000) * 3 / 2 % 999 = 828\n2|1 - 3| + 2|1 - 3| = 8\n((13) \u003c\u003c 8) \u003e\u003e ((127) % 10 \u0026 (31 + 7)) = 52\n(5 \u003c\u003c 1) ∨ (5 \u003c\u003c 2) ^ (5 \u003c\u003c 3) = 62\n(0 + ~(0xDF234 \u0026 1000) * 3) / -2 = 817.5\n1 + (((2 + (3 + (4 + (5 + 6) * -7))) \u0026 127) \u003c\u003c 1) * -3 = -359\n2sin(3.1415 / 2) + 3cos(0) = 5\ngcd(24, 36) = 12\n0xFF + 0b11 - 015 = 245\n\nx = 3\nx**3 + 3x**2 + 3x**1 + x**0 = 64\n```\n\n## Setup\n\n1. Go into the project directory\n2. Create a build folder and go into it\n\n```shell\nmkdir build \u0026\u0026 cd build\n```\n\n3. Compile using CMake\n\n```shell\ncmake .. \u0026\u0026 make\n```\n\n4. Run it\n\n```shell\n./Calculator\n```\n\n## License\n\nLicensed under MIT.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fh4wk507%2Fqtcalculator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fh4wk507%2Fqtcalculator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fh4wk507%2Fqtcalculator/lists"}