Printing floating-point numbers quickly and accurately

12Citations
Citations of this article
35Readers
Mendeley users who have this article in their library.

Abstract

This paper presents a fast and accurate algorithm for printing floating-point numbers in both free- and fixed-format modes. In free-format mode, the algorithm generates the shortest, correctly rounded output string that converts to the same number when read back in, accommodating whatever rounding mode the reader uses. In fixed-format mode, the algorithm generates a correctly rounded output string using special # marks to denote insignificant trailing digits. For both modes, the algorithm employs a fast estimator to scale floating-point numbers efficiently. © 1996 ACM.

Cite

CITATION STYLE

APA

Burger, R. G., & Dybvig, R. K. (1996). Printing floating-point numbers quickly and accurately. SIGPLAN Notices (ACM Special Interest Group on Programming Languages), 31(5), 108–116. https://doi.org/10.1145/249069.231397

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free