G grafsoft Well-Known Member Licensed User Longtime User Oct 13, 2017 #1 ... that represent an unsigned integer into an integer variable? Thanks Peter
derez Expert Licensed User Longtime User Oct 14, 2017 #2 If you read the buffer with bc.intsfrombytes then you get the following: 1. for number from 0 to 2,147,483,647 - the same as the original Uint 2. if you get negative number - then add it to 4,294,967,295 (with the sign) so the result is less then 4,294,967,295. Note - this is true for all B4X except B4R. See this (which is for B4R): https://www.b4x.com/android/forum/threads/data-types.65666/ Last edited: Oct 14, 2017 Upvote 0
If you read the buffer with bc.intsfrombytes then you get the following: 1. for number from 0 to 2,147,483,647 - the same as the original Uint 2. if you get negative number - then add it to 4,294,967,295 (with the sign) so the result is less then 4,294,967,295. Note - this is true for all B4X except B4R. See this (which is for B4R): https://www.b4x.com/android/forum/threads/data-types.65666/
Erel B4X founder Staff member Licensed User Longtime User Oct 15, 2017 #3 See this post: https://www.b4x.com/android/forum/t...e-reading-unsigned-integer.82311/#post-521408 Upvote 0