T tzfpg Active Member Licensed User Longtime User Feb 27, 2018 #1 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?
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?
Erel B4X founder Staff member Licensed User Longtime User Feb 27, 2018 #2 Try it with: B4X: Dim v As UInt = Bit.ParseInt(s, 16) Log(v) Upvote 0