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
```
# 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](https://github.com/night0721/based/blob/master/LICENSE) for more information.