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. 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:

Regards, Chuck

This thread ...


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

This mailing list archive is Copyright 1997-2020 by 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].