{"id":13569936,"url":"https://github.com/vapier/pcalc","last_synced_at":"2025-07-28T09:07:55.662Z","repository":{"id":34064782,"uuid":"37851135","full_name":"vapier/pcalc","owner":"vapier","description":"command line util for doing hex/dec/oct/bin math quickly","archived":false,"fork":false,"pushed_at":"2023-11-23T09:07:06.000Z","size":183,"stargazers_count":123,"open_issues_count":5,"forks_count":19,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-04-11T18:24:25.066Z","etag":null,"topics":["c","calculator","programmer-tool"],"latest_commit_sha":null,"homepage":"https://vapier.github.io/pcalc/","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vapier.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-06-22T11:14:56.000Z","updated_at":"2025-04-03T08:52:03.000Z","dependencies_parsed_at":"2024-06-19T13:26:45.473Z","dependency_job_id":"2a224975-687e-4568-bd36-93ef2ae0d947","html_url":"https://github.com/vapier/pcalc","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/vapier/pcalc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vapier%2Fpcalc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vapier%2Fpcalc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vapier%2Fpcalc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vapier%2Fpcalc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vapier","download_url":"https://codeload.github.com/vapier/pcalc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vapier%2Fpcalc/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267489790,"owners_count":24095804,"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","status":"online","status_checked_at":"2025-07-28T02:00:09.689Z","response_time":68,"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":["c","calculator","programmer-tool"],"created_at":"2024-08-01T14:00:46.077Z","updated_at":"2025-07-28T09:07:55.485Z","avatar_url":"https://github.com/vapier.png","language":"C","readme":"# pcalc: The Programmer's calculator\n\n[![Build Status](https://github.com/vapier/pcalc/actions/workflows/build-test-ci.yml/badge.svg)](https://github.com/vapier/pcalc/actions/workflows/build-test-ci.yml)\n\nThere was always a loophole when it came to a need to covert between\nhexadecimal / decimal / octal / binary.\n\nEspecially if it involved an operation like 0x1234 + 0x20.\nIt took a lot of hard work, and mostly a good pocket calculator.\n\n## Features\n\n* Full math parser, parentheses, add, sub, mult, div, exponential\n* Automatic conversion between HEX DEC OCT BIN numbers\n* Mixing different bases in one expression\n* Definable variables\n* Math constants (E PI ...)\n* Built in math functions (sin/cos/sqrt ...)\n\n## Examples\n\nHere are bunch of common examples.\n\nSee the [SYNTAX.md] file for the full syntax.\nYou can also run `pcalc` for a local reference.\n\n```sh\n$ pcalc 0x300\n        768                     0x300                   0y1100000000\n\n# Note: Shell expansion on the '*' char requires the single quotes.\n$ pcalc '0x300 + 3 * 3'\n        777                     0x309                   0y1100001001\n\n$ pcalc sqrt 2\n        1.414213562373095       0x1                     0y1\n\n# Note: The single quotes are to keep the shell happy with the () characters.\n$ pcalc 'sqrt(2)'\n        1.414213562373095       0x1                     0y1\n\n$ pcalc 0x12 or 23\n        23                      0x17                    0y10111\n\n# To execute a script, use the `@` prefix on the filename.\n$ pcalc @pcalc.001\n```\n\n## Building \u0026 Installing\n\nTo compile the project, simply use `make`:\n```sh\n$ make\n```\n\nNote: Some platforms might not provide `flex` or `-lfl`.\nYou will need to adjust the Makefile accordingly.\n\nTo install it, you can do:\n```sh\n$ sudo make install\n```\n\n## Testing\n\nTo run the unittests, use:\n```sh\n$ make check\n```\n\nNote: Depending on the precision of floating point math in your system, some\nunittests might fail.  It's OK to ignore those specific failures.\n\n## Feedback\n\nPlease use the GH issue tracker for any updates/ports/suggestions.\nFeedback always welcome!\n\nhttps://github.com/vapier/pcalc/issues\n\n## License\n\nThis project is licensed under GPLv2 (or later).\nThe full text can be found in the [COPYING] file.\n\n\n[COPYING]: ./COPYING\n[SYNTAX.md]: ./SYNTAX.md\n","funding_links":[],"categories":["C"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvapier%2Fpcalc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvapier%2Fpcalc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvapier%2Fpcalc/lists"}