A Software Implementation of the IEEE 754R Decimal Floating-Point Arithmetic Using the Binary Encoding Format
Authors:
- 1 June 2007
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- No. 10636889,p. 29-37
Abstract
The IEEE Standard 754-1985 for binary floating-point arithmetic [1] was revised [2], and an important addition is the definition of decimal floating-point arithmetic. This is intended mainly to provide a robust, reliable framework for financial applications that are often subject to legal requirements concerning rounding and precision of the results, because the binary floating-point arithmetic may introduce small but unacceptable errors. Using binary floating-point calculations to emulate decimal calculations in order to correct this issue has led to the existence of numerous proprietary software packages, each with its own characteristics and capabilities. IEEE 754R decimal arithmetic should unify the ways decimal floating-point calculations are carried out on various platforms. New algorithms and properties are presented in this paper which are used in a software implementation of the IEEE 754R decimal floatingpoint arithmetic, with emphasis on using binary operations efficiently. The focus is on rounding techniques for decimal values stored in binary format, but algorithms for the more important or interesting operations of addition, multiplication, division, and conversions between binary and decimal floating-point formats are also outlined. Performance results are included for a wider range of operations, showing promise that our approach is viable for applications that require decimal floating-point calculations.Keywords
This publication has 8 references indexed in Scilit:
- Decimal floating-point in z9: An implementation and testing perspectiveIBM Journal of Research and Development, 2007
- Decimal floating-point: algorism for computers2004
- Decimal multiplication via carry-save addition2004
- Potential speedup using decimal floating-point hardware2003
- Densely packed decimal encodingIEE Proceedings - Computers and Digital Techniques, 2002
- The IBM z900 decimal arithmetic unit2001
- CADAC: A Controlled-Precision Decimal Arithmetic UnitIEEE Transactions on Computers, 1983
- Fingers or fists? (the choice of decimal or binary representation)Communications of the ACM, 1959