CLI tool for base conversion for A Level students
Find a file
2024-05-22 11:21:08 +01:00
.gitignore initial commit 2024-02-20 13:06:35 +00:00
based.1 initial commit 2024-02-20 13:06:35 +00:00
based.c initial commit 2024-02-20 13:06:35 +00:00
LICENSE initial commit 2024-02-20 13:06:35 +00:00
Makefile Update Makefile 2024-02-28 10:22:05 +00:00
README.md update readme 2024-05-22 11:21:08 +01:00

based

based is a command line tool to help A level students to revise base conversion.

Preview

Usage

Usage: ./based -f [from] -t [to] -n [number]
based is a command line tool to help A level students to revise base conversion.
Options:
    -f [bin|oct|dec|hex]    The base to convert from
    -t [bin|oct|dec|hex]    The base to convert to
    -n [number]             The number to convert (must be representable by 8 bits)
                            When from base is binary, the number must have 8 characters
                            When from base is octal, the number must have at most 3 characters
                            When from base is hexadecimal, the number must have 2 characters
                            When from base is decimal, the number must be a bigger than 0 and smaller than 256

Dependencies

None

Building

You will need to run these with elevated privilages.

$ make
# make install

Contributions

Contributions are welcomed, feel free to open a pull request.

License

This project is licensed under the GNU Public License v3.0. See LICENSE for more information.