B4R Question string hex to decimal

tzfpg

Active Member
Licensed User
Longtime User
i have confuse about the convert between hex and decimal on b4r.
here is my code:
B4X:
dim s as string ="AD20"
log(Bit.ParseInt(s,16)) ' i want get the value is 44320 but i get -21216

what is the best way to convert the hex to decimal?
 
Top