× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



On Thu, Aug 4, 2011 at 1:52 PM, John McKee <jmmckee@xxxxxxxxxxxxxx> wrote:
In the event that the two digits were 7 and 8, in a character
string, the hex values (zoned) would be F7F8.  Goal is to
convert zoned to unsigned packed, so F7F8 converts to 78
not 4E.

I believe I messed up earlier in terminology.

I am still confused by your terminology. How does your earlier
example of 105 fit into all of this? You said you wanted to get 105
into a single byte. Are you saying that was completely wrong? If so,
where does your 105 come from; is it a number or a string; and what do
you want to convert it to?

(Hint: Use punctuation to reduce the chance of misunderstanding.
'105' is a three-character string. 105 is the number 105 that every
nonprogrammer understands. x'105F' is a two-byte hex value (and
happens to be the packed decimal representation of positive 105).
Even if you have already gotten what you need from this thread, it
would be helpful for the future to use common notational conventions.)

John Y.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.