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

