/ Published in: Bash
A subroutine to convert from 10 base integer into 16 base hexadecimal.
Expand |
Embed | Plain Text
inttohex() { echo $(echo "obase=16; $1" | bc) }
You need to login to post a comment.
A subroutine to convert from 10 base integer into 16 base hexadecimal.
inttohex() { echo $(echo "obase=16; $1" | bc) }
You need to login to post a comment.