Bit.ToHexString

mrossen

Active Member
Licensed User
Longtime User
Hi,

I have this problem that when I use

B4X:
Bit.ToHexString("255")

the result is : 160ff

Can anyone explain where the 160 comes from.

Mogens
 

kickaha

Well-Known Member
Licensed User
Longtime User
1) When I tried this it returned ff as expected.

2) why are you using Bit.ToHexString("255"), ToHexString takes int so Bit.ToHexString(255) would be better.

We need to see more code to be of any help.
 
Upvote 0
Top