https://github.com/theckman/dec2hex
Convert decimal (base10) values to hexadecimal (base16)
https://github.com/theckman/dec2hex
Last synced: 2 months ago
JSON representation
Convert decimal (base10) values to hexadecimal (base16)
- Host: GitHub
- URL: https://github.com/theckman/dec2hex
- Owner: theckman
- License: mit
- Created: 2020-06-19T00:21:34.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-19T00:26:10.000Z (almost 5 years ago)
- Last Synced: 2023-03-16T02:32:45.222Z (about 2 years ago)
- Language: Go
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dec2hex
This is a simple utility for rapidly converting decimal numbers (base10) to
their hexadecimal (base16) representation. By default the command adds a newline
to the output, and this can be omitted by providing the `-n` flag.If you'd like to convert from hexadecimal to decimal, either create a copy of
the binary named `h2d` or symlink it:```
ln -sf ./dec2hex ./h2d
```I personally have two symlinks: `d2h` for a short-handed dec2hex, and `h2d` for
a short-handed hex2dec.