Content deleted Content added
Zairean Tags: Reverted Visual edit Mobile edit Mobile web edit |
Reverted 1 edit by 64.39.197.209 (talk): Irrelevant |
||
Line 3:
{{floating-point}}
{{Computer architecture bit widths}}
'''
The advantage of decimal floating-point representation over decimal [[Fixed-point arithmetic|fixed-point]] and [[Integer (computer science)|integer]] representation is that it supports a much wider range of values. For example, while a fixed-point representation that allocates 8 decimal digits and 2 decimal places can represent the numbers 123456.78, 8765.43, 123.00, and so on, a floating-point representation with 8 decimal digits could also represent 1.2345678, 1234567.8, 0.000012345678, 12345678000000000, and so on. This wider range can dramatically slow the accumulation of rounding errors during successive calculations; for example, the [[Kahan summation algorithm]] can be used in floating point to add many numbers with no asymptotic accumulation of rounding error.
|