Content deleted Content added
recat |
R. S. Shaw (talk | contribs) m syn |
||
Line 6:
For example, a fixed-point number with 4 digits after the decimal point could be used to store numbers such as 1.3467, 281243.3234 and 0.1000, but would round 1.0301789 to 1.0302 and 0.0000654 to 0.0001.
Fixed-point can exactly represent decimal fractions while still employing the base 2 arithmetic that is
efficient in most of today's computers.
Most floating point representations in computers use base 2 values, which cannot exactly represent
Line 21:
same number of bits in its representation).
A common use for fixed-point numbers is for storing monetary values, where the
of floating-point numbers are often a liability.
Fixed-point representations are also sometimes used if either the executing processor does not have any [[floating point]] unit (FPU) or if fixed-point provides an
|