Skip to main content
Stack Overflow
  1. About
  2. For Teams

Timeline for Want to convert Decimal from signed 2's complement to hexdecimal without signed 2's complement (ex : -73 -> B7)

Current License: CC BY-SA 4.0

11 events
when toggle format what by license comment
Jan 13, 2022 at 11:40 comment added CommunityBot Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer.
Jan 6, 2022 at 5:58 comment added user555045 Do you have to use that default file? It's still possible to convert from a decimal representation, but that's an avoidable extra step
Jan 6, 2022 at 5:56 answer added Stephen C timeline score: 1
Jan 6, 2022 at 5:43 history edited Tejas Gohil CC BY-SA 4.0
edited title
Jan 6, 2022 at 5:41 comment added Tejas Gohil yes you are right its sends in byte but there is a default file provided by sensor manufacturer so thats decode the bytes and gives me Decimal from signed 2's complement
Jan 6, 2022 at 5:36 comment added user555045 Most things in this question make no sense to me, or are impossible. Maybe I'm wrong, but I expect that the sensor doesn't send data in decimal (a common cause for this confusion is that integers are printed in decimal by default, but that doesn't mean that the integer is decimal, it's just printed that way), but send data as a raw signed byte (which you can print in hexadecimal). Please clarify.
Jan 6, 2022 at 5:18 history edited Tejas Gohil
edited tags
Jan 6, 2022 at 5:12 comment added Mike 'Pomax' Kamermans And what did you find/write already to achieve that goal? Because SO is here to help you solve problems with your code, it's not a general help forum for when you have an idea but haven't done anything about it yet. Give how to ask a good question a read-through, and then update your post accordingly.
Jan 6, 2022 at 5:09 history edited Tejas Gohil CC BY-SA 4.0
added 30 characters in body
S Jan 6, 2022 at 5:03 review First questions
Jan 13, 2022 at 11:40
S Jan 6, 2022 at 5:03 history asked Tejas Gohil CC BY-SA 4.0

AltStyle によって変換されたページ (->オリジナル) /