BarryW Active Member Licensed User Longtime User Feb 16, 2015 #1 Hi masters, first here is my code .... Dim b() As Byte = Array As Byte(120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130) For Each i As Int In b Log(i) Next Log result is: 120, 121, 122, 123, 124, 125, 126, 127, -128, -127, -126 My Question is why does it not return the true value of 128, 129 and 130? Pls help. Tnx . . .
Hi masters, first here is my code .... Dim b() As Byte = Array As Byte(120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130) For Each i As Int In b Log(i) Next Log result is: 120, 121, 122, 123, 124, 125, 126, 127, -128, -127, -126 My Question is why does it not return the true value of 128, 129 and 130? Pls help. Tnx . . .
NJDude Expert Licensed User Longtime User Feb 16, 2015 #2 The range for a byte is from -128 to 127 You can get some more info about ranges on THIS post, and even more info HERE. Last edited: Feb 16, 2015 Upvote 0
The range for a byte is from -128 to 127 You can get some more info about ranges on THIS post, and even more info HERE.
T Troberg Well-Known Member Licensed User Longtime User Feb 16, 2015 #3 Byte is an 8 bit signed integer. Upvote 0