Browse Prior Art Database

Binary to Decimal Conversion

IP.com Disclosure Number: IPCOM000074192D
Original Publication Date: 1971-Mar-01
Included in the Prior Art Database: 2005-Feb-23
Document File: 1 page(s) / 11K

Publishing Venue

IBM

Related People

Friedman, JW: AUTHOR

Abstract

It is sometimes desirable when programming a computer system, such as an IBM System/360, to convert a packed binary number to a printable decimal number without depending upon any bit configuration which internally constitutes a "zone".

This text was extracted from a PDF file.
This is the abbreviated version, containing approximately 100% of the total text.

Page 1 of 1

Binary to Decimal Conversion

It is sometimes desirable when programming a computer system, such as an IBM System/360, to convert a packed binary number to a printable decimal number without depending upon any bit configuration which internally constitutes a "zone".

The following programming method is independent of any bit configuration which constitutes a zone.
1) Multiply the binary number by a halfword constant with the decimal value 10.
2) Convert the binary number to packed decimal.
3) Convert the packed number to zoned decimal. The result

consists of the original number in zoned decimal followed

by an additional byte with the value "plus zero". This

additional byte can simply be ignored by the program that

is processing the result.

1