Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://lib.mexmat.ru/books/105837
Дата изменения: Unknown
Дата индексирования: Tue Apr 12 20:18:29 2016
Кодировка: Windows-1251
Электронная библиотека Попечительского совета механико-математического факультета Московского государственного университета
Нашли опечатку? Выделите ее мышкой и нажмите Ctrl+Enter
Название: Fast and accurate printing of floating-point
Автор: Burger R.
Аннотация:
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. Keywords: floating-point printing, run-time systems 1 Introduction In this paper we present an efficient floating-point printing algorithm, which solves the output problem of converting floating-point numbers from an input base (usually a power of two) to an output base (usually ten).