Fast correctly-rounding floating-point conversion
Abstract
A system and method for converting bases of floating point numbers using fixed-point computation includes tables having different related spacings of exponent indices. The tables are adapted to cross-reference conversion ratios between exponent bases. The tables are characterized by bi-uniform spacings of source and target exponents and including near-unity table entries representing the conversion ratios. A source number is converted into a target number in a different radix by a sequence of reduction operations using a sequence of the tables. The reduction operations include reducing a source number exponent magnitude and accumulating a target exponent and multiplying a source number mantissa by a selected conversion ratio including a near-unity ratio of powers. A final mantissa is normalized and rounded to produce the target number in a new radix.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 7 · Forward citations: 7.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method for converting bases of floating point numbers using fixed-point computation, comprising: providing tables stored in a computer readable storage medium having different related spacings of exponent indices, the tables being adapted to cross-reference conversion ratios between exponent bases, the tables being characterized by bi-uniform spacings of source and target exponents and including near-unity table entries representing the conversion ratios; converting a source number into a target number in a different radix by a sequence of reduction operations using a sequence of the tables,
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (7 of 7 total)
References Cited — Backward Prior Art (7)
Non-Patent Literature (5)
- Abbot, et al., "Architecture and software support in IBM S/390 Parallel Enterprise Servers for IEEE Floating-Point arithmetic", IBM Journal of Research and Development, vol. 43, No. 5/6, pp. 723-760, Sep./Nov. 1999.
- Gordon Slishman, "Fast and Perfectly Rounding Decimal/Hexadecimal Conversions", IBM Research Report RC 15683, pp. 1-11, 1990.
- Michel Hack, "On Intermediate Precision Required for Correctly-rounding Decimal-to-Binary Floating-Point Conversion", RNC6 (Real Numbers and Computers 6), Nov. 2004, Dagstuhl, Germany, pp. 113-134.
- Steele, et al., "How to Print Floating Point Numbers Accurately", Proceedings of the ACM SIGPLAN '90 Conference on Programming Language Design and Implementation, pp. 112-126, Jun. 20-22, 1990.
- William D. Clinger, "How to Read Floating Point Numbers Accurately, Proceedings of the ACM SIGPLAN '90 Conference on Programming Language Design and Implementation", pp. 92-101, Jun. 20-22, 1990.