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.

Standard
1.6 Casting and Ranges of Variables
Standard
2.5 Casting
Standard
2.6 Casting and Ranges of Variables
Standard
4.6 Casting
Standard
7.6 Casting and Ranges of Variables
Standard
6.6 Casting and Ranges of Variables
Standard
4.6 Casting