Author: Robert Sample
Posted: Wed Sep 14, 2016 6:30 am (GMT 5.5)
Nope, not at all. The first variable is a one-byte binary field and hence easy enough to convert to a human-readable format - and there are plenty of examples on this forum to follow. However, the second variable -- what do you mean by "readable format"? Should the first value be converted to 'A02012' (that is, merely convert the hexadecimal to characters representing the same value) for the first one, or 10493970 (which is what X'A02012' converts to), or something else you haven't explained?
And, by the way, hexadecimal values are also binary values -- so your point about alphanumeric is totally irrelevant.
_________________
TANSTAAFL
The first rule of code reuse is that the code needs to be worth re-using.
"We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil." -- Donald Knuth
Posted: Wed Sep 14, 2016 6:30 am (GMT 5.5)
Quote: |
I hope my query is bit clear to understand. |
And, by the way, hexadecimal values are also binary values -- so your point about alphanumeric is totally irrelevant.
_________________
TANSTAAFL
The first rule of code reuse is that the code needs to be worth re-using.
"We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil." -- Donald Knuth