Printing floating-point numbers quickly and accurately with integers
نویسندگان
چکیده
منابع مشابه
Printing Floating - Point
This paper presents a fast and accurate algorithm for printing oating-point numbers in both free-and xed-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 xed-format mode, the algorithm generates a correctly rounded output string usi...
متن کاملFloating Point Numbers
The natural arithmetic operand in a computer is the binary integer. However, the range of numbers that can be represented is limited by the computer’s word size. We cannot represent very large or very small numbers. For example, in a computer with a 32 bit word, the largest signed number is 2 – 1. The range is further diminished if some bits of the word are used for fractions. There are techniq...
متن کاملFloating-Point Numbers with Error Estimates (revised)
The original work [25] is here reconsidered, so many years after. The old text has been revised, plus several considerations have been added, in order to clarify some controversial aspects of the work, and to envision possible developments. A section has been added, to review the effects of the original paper. The study addresses the problem of precision in floating-point (FP) computations. A m...
متن کاملDensity results on floating-point invertible numbers
Let Fk denote the k-bit mantissa "oating-point (FP) numbers. We prove a conjecture of Muller according to which the proportion of numbers in Fk with no FP-reciprocal (for rounding to the nearest element) approaches 2 − 2 log 3 ≈ 0:06847689 as k → ∞. We investigate a similar question for the inverse square root. c © 2002 Elsevier Science B.V. All rights reserved.
متن کاملIEEE Standard 754 Floating Point Numbers
There are several ways to represent real numbers on computers. Fixed point places a radix point somewhere in the middle of the digits, and is equivalent to using integers that represent portions of some unit. For example, one might represent 1/100ths of a unit; if you have four decimal digits, you could represent 10.82, or 00.01. Another approach is to use rationals, and represent every number ...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
ژورنال
عنوان ژورنال: ACM SIGPLAN Notices
سال: 2010
ISSN: 0362-1340,1558-1160
DOI: 10.1145/1809028.1806623