Hello,
I hate to admit this but I am struggling a bit here.
I am working with a file that contains a one byte field in binary (i.e. hex) that I need to convert to numeric. To be more specific I have an example; the one byte field in hex comes in as an '80', which in turn should translate to '128'. But I haven't been able to accomplish this ... I know there is a way but can't seem to figure this out.
Ex.
?
-
8
0
I need to develop a way to take this one byte '80' and convert it to the numeric equivalent of 128. I am using '80' but it could be any value that that one byte could contain.
If anyone could help; I would be eternally grateful.
Regards
I hate to admit this but I am struggling a bit here.
I am working with a file that contains a one byte field in binary (i.e. hex) that I need to convert to numeric. To be more specific I have an example; the one byte field in hex comes in as an '80', which in turn should translate to '128'. But I haven't been able to accomplish this ... I know there is a way but can't seem to figure this out.
Ex.
?
-
8
0
I need to develop a way to take this one byte '80' and convert it to the numeric equivalent of 128. I am using '80' but it could be any value that that one byte could contain.
If anyone could help; I would be eternally grateful.
Regards