{"id":17077975,"url":"https://github.com/arzzen/calc","last_synced_at":"2025-11-03T19:44:30.180Z","repository":{"id":78915161,"uuid":"56344620","full_name":"arzzen/calc","owner":"arzzen","description":"The simplest bash calculator.","archived":false,"fork":false,"pushed_at":"2018-01-13T15:08:22.000Z","size":3,"stargazers_count":10,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-09T23:03:34.489Z","etag":null,"topics":["bash","calc","calculator","shell"],"latest_commit_sha":null,"homepage":null,"language":"Makefile","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/arzzen.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-04-15T19:26:13.000Z","updated_at":"2022-04-26T21:34:26.000Z","dependencies_parsed_at":"2023-06-26T09:30:35.040Z","dependency_job_id":null,"html_url":"https://github.com/arzzen/calc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arzzen%2Fcalc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arzzen%2Fcalc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arzzen%2Fcalc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arzzen%2Fcalc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arzzen","download_url":"https://codeload.github.com/arzzen/calc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248627152,"owners_count":21135812,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["bash","calc","calculator","shell"],"created_at":"2024-10-14T12:18:23.022Z","updated_at":"2025-11-03T19:44:30.152Z","avatar_url":"https://github.com/arzzen.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple bash calculator\n\n### Demo\n\n![calc demo](https://cloud.githubusercontent.com/assets/6382002/13583451/b1e44d30-e4b1-11e5-9efa-804f397c1181.gif)\n\n\n### Installation\n\n```bash\ngit clone https://github.com/arzzen/calc.git \u0026\u0026 cd calc\nsudo make install\n```\n\nFor uninstalling, open up the cloned directory and run\n\n```bash\nsudo make uninstall\n```\n\n### Usage\n```bash\n# addition\nroot@pc:~$ = 5+3                                                \n8\n\n# multiplication\nroot@pc:~$ = '4*2'\n8\n\n# subtraction\nroot@pc:~$ = -4-2\n-6\n\n# division\nroot@pc:~$ = 4/2\n2.00000000000000000000\n\n# square root \nroot@pc:~$ = \"scale=30; sqrt(2)\"\n1.414213562373095048801688724209\n\n# power\nroot@pc:~$ = \"6^6\"\n46656\n\n# parentheses\nroot@pc:~$ = \"(6^6)^6\"\n10314424798490535546171949056\n\n# convert from decimal to hexadecimal \nroot@pc:~$ = \"obase=16; 255\"\nFF\n\n# convert from decimal to binary \nroot@pc:~$ = \"obase=2; 12\"\n1100\n\n# convert from binary to decimal \nroot@pc:~$ = \"ibase=2; obase=A;1100\"\n12\n\n# convert from hexadecimal to decimal \nroot@pc:~$ = \"ibase=16; obase=A;FF\"\n255\n\n# arctangent\nroot@pc:~$ = \"a(1)\"\n.78539816339744830961\n\n# PI value\nroot@pc:~$ = \"scale=10; 4*a(1)\"\n3.1415926532\n\n# more complex\nroot@pc:~$ = \"scale=2; 3.4+7/8-(5.94*(4*a(1)))\"\n-14.26\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farzzen%2Fcalc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farzzen%2Fcalc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farzzen%2Fcalc/lists"}