Composition of decimal floating point data
AssigneeInternational Business Machines Corporation
InventorsShawn D. Lundvall, Eric M. Schwarz, Ronald M. Smith, Sr., Phil C. Yeh
Life of this patent
Estimating the term…
Abstract
A decimal floating point finite number in a decimal floating point format is composed from the number in a different format. A decimal floating point format includes fields to hold information relating to the sign, exponent and significand of the decimal floating point finite number. Other decimal floating point data, including infinities and NaNs (not a number), are also composed. Decimal floating point data are also decomposed from the decimal floating point format to a different format.
Claims28
A computer program product for composing a decimal floating point datum, said computer program product comprising:
- a non-transitory computer readable medium readable by a processor and storing instructions for execution by the process for performing a method comprising:
- obtaining a significand of a datum in a first format and an exponent of the datum in a second format;
- converting the significand in the first format to the significand in a decimal floating point format;
- converting the exponent in the second format to a biased exponent;
- and
- combining the significand in the decimal floating point format and the biased exponent to create the datum in the decimal floating point format.
A computer system to compose a decimal floating point datum, said computer system comprising:
- a memory;
- and
- a processor in communications with the memory, wherein the computer system is configured to perform a method, the method comprising:
- obtaining a significand of a datum in a first format and an exponent of the datum in a second format;
- converting the significand in the first format to the significand in a decimal floating point format;
- converting the exponent in the second format to a biased exponent;
- and
- combining the significand in the decimal floating point format and the biased exponent to create the datum in the decimal floating point format.
Dependencies are inferred from the claim text.