Completion requirements
This chapter discusses the 'for' loop in greater detail, as well as the scope of variables in the 'for' loop.
9. End of Chapter
Answer:
Decimal-based floating point numbers have similar
problems, but with different numbers. For example
1.0/3.0 == 0.3333...
without end.
All floating point schemes have these problems.
Since binary has so many other advantages, most
computers use it. Electronic calculators sometimes
use hardware decimal-based calculations since
they always present their results to humans. Also,
mainframe computers have hardware decimal-
based instructions for use in financial calculations.
End of Chapter
Reviewing the following. Click on a subject that interests you to go to where it was discussed.
- for statement, local loop control variable Declaring the loop control variable as part of the
for
statement. - scope, of loop control variable The scope of a variable declared in a
for
statement. - floating point, as loop control variable Floating point loop control variable.