/ Published in: Bash

A subroutine to convert from 10 base integer into 16 base hexadecimal.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
inttohex() { echo $(echo "obase=16; $1" | bc) }
Comments
