{"id":19430333,"url":"https://github.com/8dcc/binary-conversions","last_synced_at":"2026-05-13T08:34:10.683Z","repository":{"id":60155856,"uuid":"541131659","full_name":"8dcc/binary-conversions","owner":"8dcc","description":"Tiny C program for converting to decimal, binary, octal and hexadecimal","archived":false,"fork":false,"pushed_at":"2022-10-21T07:49:07.000Z","size":33,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-11T22:30:56.801Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/8dcc.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-09-25T10:18:02.000Z","updated_at":"2022-09-25T14:21:57.000Z","dependencies_parsed_at":"2023-01-20T06:55:12.486Z","dependency_job_id":null,"html_url":"https://github.com/8dcc/binary-conversions","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/8dcc/binary-conversions","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/8dcc%2Fbinary-conversions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/8dcc%2Fbinary-conversions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/8dcc%2Fbinary-conversions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/8dcc%2Fbinary-conversions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/8dcc","download_url":"https://codeload.github.com/8dcc/binary-conversions/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/8dcc%2Fbinary-conversions/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32974803,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T06:31:55.726Z","status":"ssl_error","status_checked_at":"2026-05-13T06:31:51.336Z","response_time":115,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-11-10T14:24:35.386Z","updated_at":"2026-05-13T08:34:10.661Z","avatar_url":"https://github.com/8dcc.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n    \u003ch1\u003eBinary conversions\u003c/h1\u003e\n    \u003cb\u003eTiny C program for converting to decimal, binary, octal and hexadecimal\u003c/b\u003e\n\u003c/div\u003e\n\n## Installation\nDownload compiled binaries from the [releases](https://github.com/r4v10l1/binary-conversions/releases/latest) tab or build the source code using make:\n```bash\ngit clone https://github.com/r4v10l1/binary-conversions\ncd binary-conversions\nmake\n./conversor.out --help\n```\n\n## Usage\n\n### Decimal\n*Syntax:*\n```bash\n# Note that 'd' can be any word starting with 'd', like 'dec' or 'decimal'\nconversor.out d \u003cdecimal integer\u003e\n```\n\n*Example:*\n```console\n$ ./conversor.out decimal 420\nDec: 420\nBin: 110100100\nOct: 644\nHex: 1A4\n```\n\n### Binary\n*Syntax:*\n```bash\n# Note that 'b' can be any word starting with 'b', like 'bin' or 'binary'\nconversor.out b \u003cbinary long\u003e\n```\n\n*Example:*\n```console\n$ ./conversor.out binary 111011\nDec: 59\nBin: 111011\nOct: 73\nHex: 3B\n```\n\n### Octal\n*Syntax:*\n```bash\n# Note that 'o' can be any word starting with 'o', like 'oct' or 'octal'\nconversor.out o \u003coctal integer\u003e\n```\n\n*Example:*\n```console\n$ ./conversor.out octal 1337\nDec: 735\nBin: 1011011111\nOct: 1337\nHex: 2DF\n```\n\n### Hexadecimal\n*Syntax:*\n```bash\n# Note that because of type sizes in c, very big numbers fail\n# Note that 'h' can be any word starting with 'h', like 'hex' or 'hexadecimal'\nconversor.out h \u003chexadecimal string\u003e\n```\n\n*Example:*\n```console\n$ ./conversor.out hex AE\nDec: 174\nBin: 10101110\nOct: 256\nHex: AE\n```\n\n## Compensate\n```c\nmake compensate.out\n./compensate.out \u003cmax items\u003e \u003c item-list.txt\n```\n\nYou can see an example of `conversor` and `compensate` in [`misc/binary-table.sh`](misc/binary-table.sh).\n\n## Old method\nAn old and worse method can be found on the [`old-conversions`](https://github.com/r4v10l1/binary-conversions/tree/old-conversions) branch.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F8dcc%2Fbinary-conversions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F8dcc%2Fbinary-conversions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F8dcc%2Fbinary-conversions/lists"}