Please enable JavaScript to use CodeHS

CodeHS Glossary


narrowing conversion General

Converting a value to a type that can represent a smaller range, such as double to int or int to byte. Narrowing requires an explicit cast and can lose data or wrap around.