Please enable JavaScript to use CodeHS

AP CSA: CON-1.C.2

CodeHS Lessons

Casting a double value to an int causes the digits to the right of the decimal point to be truncated.

6.6 Casting and Ranges of Variables
7.6 Casting and Ranges of Variables
1.6 Casting and Ranges of Variables