Return to Snippet

Revision: 2718
at April 3, 2007 09:49 by kesor


Initial Code
inttohex() { echo $(echo "obase=16; $1" | bc) }

Initial URL


Initial Description
A subroutine to convert from 10 base integer into 16 base hexadecimal.

Initial Title
convert from int to hex

Initial Tags


Initial Language
Bash