Browse Prior Art Database

Packed Decimal Divide Overflow Apparatus

IP.com Disclosure Number: IPCOM000054065D
Original Publication Date: 1980-Dec-01
Included in the Prior Art Database: 2005-Feb-13

Publishing Venue

IBM

Related People

Authors:
Gill, CD Schardt, TL [+details]

Abstract

In the past, decimal divide overflow has been avoided because it would terminate the divide operation when overflow was detected. In order to avoid overflow, it was necessary to allow sufficient work area in which to divide regardless of the size of the data field or the precision required of the quotient. In the present arrangement, if sufficient work area for the entire quotient is lacking, the divide is not terminated and as much of the quotient as possible is provided. Leading zeros are stripped from the quotient to allow more room for significant quotient digits. The quotient is truncated on the right rather than on the left to allow as precise a quotient as possible in the work area available. This eliminates the need to calculate the work area requirements to avoid decimal overflows.