Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Java
can java read bits?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Jean Charbonneau, post: 574330"] you could do such a thing : If you would want to get the temperature, you could use a mask to get only the values you need Here is my view : Exemple with temperature | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10| 11| 12| 13| 14| 15| 16| -> convert this binary number into byte | Temperature | Useless information | AND ( logical operator ) | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | -> convert this binary number into byte Then the byte you'd get from that calculation, would only contain the significative part of the temperature, and you could store it, isn't that such thing you are trying to accomplish ? [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Java
can java read bits?
Top