Please enable JavaScript to use CodeHS

CodeHS Glossary


(int)(x + 0.5) Java

Rounds the value of a double to the nearest whole number.