bc

Do floating point division

>>> 1 / 2
0
>>> scale=4
>>> 1 / 2
.5000

Work fully in hex

obase=16
ibase=16

Converting hex to decimal

ibase=16

Converting decimal to hex

obase=16