Content deleted Content added
No edit summary |
Jorge Stolfi (talk | contribs) + clarification on representation |
||
Line 11:
most fractions that are easily represented in base 10.
For example, one-tenth (.1) and one-hundredth (.01) can only be represented approximately
by base-2 floating point representations, while they can be represented exactly in fixed-point representations — one simply stores the data values multiplied by the appropriate power of 10.
As long as the numeric value uses only the number of digits specified after the
Line 29:
for both fixed-point and floating-point.
Floating-point representations are also slightly easier to use, because they do not require programmers to specify the number of digits after the decimal point.
|