I infow Member Licensed User Longtime User Apr 25, 2017 #1 In Java seems to be something like that: Low = 123 & 0xFF High = ((123 >> 8) & 0xFF) How can I do that in B4A? Thank you
In Java seems to be something like that: Low = 123 & 0xFF High = ((123 >> 8) & 0xFF) How can I do that in B4A? Thank you
DonManfred Expert Licensed User Longtime User Apr 25, 2017 #2 https://www.b4x.com/android/help/core.html#bit Upvote 0
I infow Member Licensed User Longtime User Apr 25, 2017 #3 This worked for me! Thanks! low = Bit.And(384, 0xFF) high = (Bit.And(Bit.ShiftRight(384,8), 0xFF)) Upvote 0
S sorex Expert Licensed User Longtime User Apr 26, 2017 #4 the AND is not needed in the high case if you know that the initial value will never go beyond 65535 Upvote 0