Derek Johnson Active Member Licensed User Longtime User Feb 3, 2015 #1 Are there any libraries etc for B4A that will convert a 19-digit decimal number (in a string) to hex (in a string)? This is beyond the range of double. eg 4234838936377479981 to 3AC52B9353C5D32D Derek
Are there any libraries etc for B4A that will convert a 19-digit decimal number (in a string) to hex (in a string)? This is beyond the range of double. eg 4234838936377479981 to 3AC52B9353C5D32D Derek
K keirS Well-Known Member Licensed User Longtime User Feb 3, 2015 #2 You need the BigNumbers library. B4X: Dim ABC As BigInteger ABC.Initialize("4234838936377479981") Log(ABC.ToStringBase(16)) The above code will do what you want. Upvote 0
You need the BigNumbers library. B4X: Dim ABC As BigInteger ABC.Initialize("4234838936377479981") Log(ABC.ToStringBase(16)) The above code will do what you want.
Derek Johnson Active Member Licensed User Longtime User Feb 3, 2015 #3 keirS said: You need the BigNumbers library. B4X: Dim ABC As BigInteger ABC.Initialize("4234838936377479981") Log(ABC.ToStringBase(16)) The above code will do what you want. Click to expand... Thanks, I thought that there must be a solution. Upvote 0
keirS said: You need the BigNumbers library. B4X: Dim ABC As BigInteger ABC.Initialize("4234838936377479981") Log(ABC.ToStringBase(16)) The above code will do what you want. Click to expand... Thanks, I thought that there must be a solution.