The goal of this exercise is to teach the student how the Concept of floating-point numbers is implemented in C#. It will show the available floating-point types and discuss their differences.
- Know of the existence of the three floating point types:
double
,float
anddecimal
. - Know when to use which type.
- Know how to write a
while
loop.
- Parsing floating-point types from strings.
- Converting floating-point types to strings.
- Using standard or custom format strings.
The Concepts this exercise unlocks are:
numbers-floating-point
: know of the existing of the three floating point types:double
,float
anddecimal
. know when to use which type.loops-while
: know how to write awhile
loop.
This exercise's prerequisites Concepts are:
numbers-basic
: define numbers and apply arithmetic and boolean logic to them.type-conversion-numbers
: convert from one floating-point type to another.conditionals-if
: conditionally execute code based on value of floating-point numbers.
This exercise does not require any specific representation logic to be added to the representer.
This exercise does not require any specific logic to be added to the analyzer.