Converts beacon hex to decimal