This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

3 bytes to 2 bytes
#2
You can multiply one byte by 256 then add the other one:
Code:
b = b1 * 256 + b2

You might need to change which bytes to use and in what order, depending on how the source value is encoded.
Reply


Messages In This Thread
3 bytes to 2 bytes - by savaskorkmaz - 23.01.2024, 11:35
RE: 3 bytes to 2 bytes - by admin - 23.01.2024, 12:28

Forum Jump: