{"id":16179670,"url":"https://github.com/thomasheller/2","last_synced_at":"2025-04-07T11:45:14.902Z","repository":{"id":72940086,"uuid":"82959269","full_name":"thomasheller/2","owner":"thomasheller","description":"Handy power of 2 table/calculator","archived":false,"fork":false,"pushed_at":"2017-03-04T12:00:33.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-13T14:40:45.386Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/thomasheller.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-02-23T18:41:10.000Z","updated_at":"2017-02-23T18:43:56.000Z","dependencies_parsed_at":"2023-05-26T03:46:49.592Z","dependency_job_id":null,"html_url":"https://github.com/thomasheller/2","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/thomasheller%2F2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomasheller%2F2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomasheller%2F2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomasheller%2F2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thomasheller","download_url":"https://codeload.github.com/thomasheller/2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247648923,"owners_count":20972942,"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":[],"created_at":"2024-10-10T05:43:44.429Z","updated_at":"2025-04-07T11:45:14.880Z","avatar_url":"https://github.com/thomasheller.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 2\n\n[![Go Report Card](https://goreportcard.com/badge/github.com/thomasheller/2)](https://goreportcard.com/report/github.com/thomasheller/2)\n\nHandy power of 2 table/calculator.\n\n## Usage\n\n`2` Prints 2^1 through 2^40 (default)\n\n`2 n` Prints 2^n (single value)\n\n`2 n,m` Prints 2^n and 2^m (multiple values)\n\n`2 n-m` Prints 2^n through 2^m (range)\n\n`2 n-m,x-y,z` Prints 2^n through 2^m, 2^x through 2^y and 2^z\n\n## Example\n\n```text\n$ 2\n\n2^x    Value                Approx.       Mnemonic    Byte size\n===============================================================\n  1                    2                                    2 B\n  2                    4                                    4 B\n  3                    8                                    8 B\n  4                   16                                   16 B\n  5                   32                                   32 B\n  6                   64                                   64 B\n  7                  128     1 hundred                    128 B\n  8                  256                                  256 B\n  9                  512                                  512 B\n 10                1,024    1 thousand        1 KB         1 KB\n 11                2,048                                   2 KB\n 12                4,096                                   4 KB\n 13                8,192                                   8 KB\n 14               16,384                                  16 KB\n 15               32,768                                  32 KB\n 16               65,536                     64 KB        64 KB\n 17              131,072                                 128 KB\n 18              262,144                                 256 KB\n 19              524,288                                 512 KB\n 20            1,048,576     1 million        1 MB         1 MB\n 21            2,097,152                                   2 MB\n 22            4,194,304                                   4 MB\n 23            8,388,608                                   8 MB\n 24           16,777,216                                  16 MB\n 25           33,554,432                                  32 MB\n 26           67,108,864                                  64 MB\n 27          134,217,728                                 128 MB\n 28          268,435,456                                 256 MB\n 29          536,870,912                                 512 MB\n 30        1,073,741,824     1 billion        1 GB         1 GB\n 31        2,147,483,648                                   2 GB\n 32        4,294,967,296                      4 GB         4 GB\n 33        8,589,934,592                                   8 GB\n 34       17,179,869,184                                  16 GB\n 35       34,359,738,368                                  32 GB\n 36       68,719,476,736                                  64 GB\n 37      137,438,953,472                                 128 GB\n 38      274,877,906,944                                 256 GB\n 39      549,755,813,888                                 512 GB\n 40    1,099,511,627,776    1 trillion        1 TB         1 TB\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthomasheller%2F2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthomasheller%2F2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthomasheller%2F2/lists"}