|
- Investigate what happens when you cast a floating point (FP)
value to an integer type when the FP value is larger than the
largest value for that integer type. Examine also the case where
a FP value that is lower (that is, more negative) than the minimum
possible value for an integer value is cast to that integer type.
For example, assign a value to a float
variable that is larger than the largest possible int
value. Then cast this float
value to an int
value. Print out the results. Do this for various combinations
of the FP and integer types and repeat for the minimum value cases.
Latest update: Dec.11.2003
|
|
|