Vern Hamberg wrote:
I wondered about the various possible nybbles that can be there for negative - did not remember or know of those for positive - are there more? Various references on the 'Net suggest there are only C & F for positive, D for negative. Adding another range is easy enough, it it'll take care of the problem.


Not sure where that information was found, but the reference is incorrect for the signed Packed & Zoned BCD [Binary Coded Decimal] representations on both the i and z systems. All of the 0xA through 0xF are valid sign nibbles. http://en.wikipedia.org/wiki/Binary-coded_decimal clarifies in a table for the /Packed BCD/ but fails to include a similar table for its description of the /Zoned decimal/ BCD. Both the 0xB and 0xD indicate negative data. See the IF test in the modified UDF I gave in my response to the original message: http://archive.midrange.com/midrange-l/200910/msg00774.html

Regards, Chuck

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.