An open API service indexing awesome lists of open source software.

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)

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.