Explore what CodeHS has to offer for districts, schools, and teachers.
Click on one of our programs below to get started coding in the sandbox!
View All
When two integers are divided, the decimal values are truncated, or chopped off. For example, 5 / 2 results in 2, instead of 2.5, the .5 is chopped off. Even if the decimal value is .999, it is chopped off, not rounded.