HEX to DEC Conversion Error

I'm trying to convert hex to dec and with the help of output i need to do the process. If i execute the below code

assetValue=8f
assetNavigation=$(echo "ibase=16; "$assetValue"" | bc)
echo $assetNavigation

i'm getting the error below

[user@shore-vm ~]$ sh script.sh
(standard_in) 1: syntax error

but if i change the code as

assetValue=77
assetNavigation=$(echo "ibase=16; "$assetValue"" | bc)
echo $assetNavigation

i get the out put as

I'm trying to convert hex to dec and with the help of output i need to do the process. If i execute the below code


assetValue=8f
assetNavigation=$(echo "ibase=16; "$assetValue"" | bc)
echo $assetNavigation

i'm getting the error below

[user@shore-vm ~]$ sh script.sh
119

is there in which if any alphabet is passed its throwing error or i'm wrong in doing it. help me out.

use 8F (capital letters)