Activity 6.2.
- Decimals are simply cut off.
- Correct!
- The
float
is rounded down. - Not quite - try again!
- The
float
is rounded up. - Not quite - try again!
- I can’t tell.
- Not quite - try again!
When you cast a
float
to an int
, which of the following happens?Hint.
Just use the code window above to play around. Don’t be afraid! You can’t break anything!