woniol Active Member Licensed User Longtime User Feb 25, 2014 #1 Hallo. I'm a bit confused about Bit. functions: My example is: B4X: Dim ss As Byte ss=0xfe Log(Bit.ToHexString(ss)) in log i get : fffffffe but i expect fe I know that Bit functions use int , but why fffff is added instead of 00000
Hallo. I'm a bit confused about Bit. functions: My example is: B4X: Dim ss As Byte ss=0xfe Log(Bit.ToHexString(ss)) in log i get : fffffffe but i expect fe I know that Bit functions use int , but why fffff is added instead of 00000
woniol Active Member Licensed User Longtime User Feb 25, 2014 #2 OK, think i found it. byte is a signed byte with values -128 to 127 not 0 to 254 Upvote 0