Shop OBEX P1 Docs P2 Docs Learn Events
Conversion Decimal to HEX and HEX to Decimal F — Parallax Forums

Conversion Decimal to HEX and HEX to Decimal F

ArchiverArchiver Posts: 46,084
edited 2003-01-13 20:22 in General Discussion
Suppose your initial value is 10 (decimal, the normal quantity of
fingers per person). Suppose further that your arithmetic is simply
1.5 * the initial value, so that the result is (decimal, again) 15.
To clarify your requirement, can you pls express the initial 10, the
result 15, and the transmitted form of the result as 8-bit bytes
(one or more)? For instance, using the quantities above:

initial: 0001010 (the quantity 10)

result: 00001111 (the quantity 15)

transmitted result: 00110001 00110101 (ASCII "15")

Is this what you want? If not, could you modify the above to show
what you do want?

Regards,

Steve
Sign In or Register to comment.